forked from FLawrence/tna-omega-ui-prototypes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (81 loc) · 2.64 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
84
85
86
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://tnaomegauiprototypes:tnaomegauiprototypes@db:5432/tnaomegauiprototypes # pragma: allowlist secret
DJANGO_SETTINGS_MODULE: tnaomegauiprototypes.settings.dev
MEDIA_DIR: /app/media/
RECAPTCHA_PRIVATE_KEY: UPDATE_THIS # pragma: allowlist secret
RECAPTCHA_PUBLIC_KEY: UPDATE_THIS
REDIS_URL: redis://redis
ENABLE_DJANGO_DEFENDER: 'false'
SECRET_KEY: local_dev_secret_key
SECURE_SSL_REDIRECT: 'false'
STATIC_DIR: /app/static/
STATIC_URL: /static/
command: tail -f /dev/null # do nothing forever - exec commands elsewhere
ports:
- 8000:8000 # runserver
- 8001:8001 # mkdocs serve
- 6900:6900 # pudb
volumes:
- ./.git:/app/.git:rw
- ./docs:/app/docs:rw
- ./media:/app/media:rw
- ./public:/app/public:rw
- ./docker:/app/docker:rw
- ./tnaomegauiprototypes:/app/tnaomegauiprototypes:rw
- ./README.md:/app/README.md:rw
- ./fabfile.py:/app/fabfile.py:rw
- ./.pre-commit-config.yaml:/app/.pre-commit-config.yaml: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
- ./setup.cfg:/app/setup.cfg:rw
# Frontend config
- ./.babelrc.js:/home/node/.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
- ./.stylelintignore:/app/.stylelintignore: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:12.3
expose:
- 5432
environment:
POSTGRES_DB: tnaomegauiprototypes
POSTGRES_USER: tnaomegauiprototypes
POSTGRES_PASSWORD: tnaomegauiprototypes # pragma: allowlist secret
PGDATABASE: tnaomegauiprototypes
PGUSER: tnaomegauiprototypes
PGPASSWORD: tnaomegauiprototypes # pragma: allowlist secret
POSTGRES_HOST_AUTH_METHOD: trust
logging:
driver: none
volumes:
- .:/app:ro
redis:
image: redis:6
expose:
- 6379
logging:
driver: none