-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
83 lines (77 loc) · 2.31 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3.7'
services:
web:
build:
context: .
args:
BUILD_ENV: dev
POETRY_INSTALL_ARGS: ''
target: dev
environment:
ALLOWED_HOSTS: 127.0.0.1,0.0.0.0,localhost
DATABASE_URL: postgres://tbx:tbx@db:5432/tbx # pragma: allowlist secret
DJANGO_SETTINGS_MODULE: tbx.settings.dev
MEDIA_DIR: /app/media/
REDIS_URL: redis://redis
SECRET_KEY: local_dev_secret_key # pragma: allowlist secret
SECURE_SSL_REDIRECT: 'false'
STATIC_DIR: /app/static/
STATIC_URL: /static/
HEROKU_APP_NAME: 'local-dev' # for birdbath HerokuAnonymisationAllowedCheck
ALLOWS_ANONYMISATION: 'local-dev'
command: tail -f /dev/null # do nothing forever - exec commands elsewhere
ports:
- 8000:8000 # runserver
- 8001:8001 # mkdocs serve
volumes:
- ./.git:/app/.git:rw
- ./docs:/app/docs:rw
- ./media:/app/media:rw
- ./public:/app/public:rw
- ./docker:/app/docker:rw
- ./tbx:/app/tbx:delegated,rw
- ./README.md:/app/README.md:rw
- ./fabfile.py:/app/fabfile.py:rw
# Docs config
- ./mkdocs.yml:/app/mkdocs.yml:rw
# Backend config
- ./manage.py:/app/manage.py:rw
- ./pyproject.toml:/app/pyproject.toml:rw
- ./poetry.lock:/app/poetry.lock:rw
- ./cloudflare:/app/cloudflare:rw
# Frontend config
- ./.babelrc.js:/app/.babelrc.js:rw
- ./.editorconfig:/app/.editorconfig:rw
- ./.eslintignore:/app/.eslintignore:rw
- ./.eslintrc.js:/app/.eslintrc.js:rw
- ./.prettierignore:/app/.prettierignore:rw
- ./.prettierrc.toml:/app/.prettierrc.toml:rw
- ./.stylelintrc.js:/app/.stylelintrc.js:rw
- ./package-lock.json:/app/package-lock.json:rw
- ./package.json:/app/package.json:rw
- ./webpack.config.js:/app/webpack.config.js:rw
depends_on:
- db
- redis
db:
image: postgres:15.5
expose:
- 5432
environment:
POSTGRES_DB: tbx
POSTGRES_USER: tbx
POSTGRES_PASSWORD: tbx # pragma: allowlist secret
PGDATABASE: tbx
PGUSER: tbx
PGPASSWORD: tbx # pragma: allowlist secret
POSTGRES_HOST_AUTH_METHOD: trust
logging:
driver: none
volumes:
- .:/app:ro
redis:
image: redis:7.2
expose:
- 6379
logging:
driver: none