-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
96 lines (92 loc) · 3.02 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
87
88
89
90
91
92
93
94
95
96
version: '3.7'
services:
web:
build:
context: .
args:
BUILD_ENV: dev
init: true
environment:
ALLOWED_HOSTS: 127.0.0.1,0.0.0.0,localhost
DATABASE_URL: postgres://flare_portal:flare_portal@db:5432/flare_portal # pragma: allowlist secret
DJANGO_SETTINGS_MODULE: flare_portal.settings.dev
MEDIA_DIR: /app/media/
RECAPTCHA_PRIVATE_KEY: UPDATE_THIS # pragma: allowlist secret
RECAPTCHA_PUBLIC_KEY: UPDATE_THIS
REDIS_URL: redis://redis
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
volumes:
- ./README.md:/app/README.md:delegated,ro
- ./docs:/app/docs:delegated,ro
- ./manage.py:/app/manage.py:delegated,ro
- ./flare_portal:/app/flare_portal:delegated,rw
- ./media:/app/media:delegated,rw
- ./mkdocs.yml:/app/mkdocs.yml:delegated,ro
- ./poetry.lock:/app/poetry.lock:rw
- ./public:/app/public:delegated,ro
- ./pyproject.toml:/app/pyproject.toml:rw
- ./setup.cfg:/app/setup.cfg:delegated,ro
depends_on:
- db
- redis
frontend:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile.frontend
init: true
environment:
NODE_ENV: development
PROXY_HOST: web
PROXY_PORT: 8000
volumes:
# Config files
- ./.babelrc.js:/home/node/.babelrc.js:delegated,ro
- ./.editorconfig:/home/node/.editorconfig:delegated,ro
- ./.eslintignore:/home/node/.eslintignore:delegated,ro
- ./.eslintrc.js:/home/node/.eslintrc.js:delegated,ro
- ./.prettierignore:/home/node/.prettierignore:delegated,ro
- ./.prettierrc.toml:/home/node/.prettierrc.toml:delegated,ro
- ./.stylelintrc.js:/home/node/.stylelintrc.js:delegated,ro
- ./browsersync.config.js:/home/node/browsersync.config.js:delegated,ro
- ./package-lock.json:/home/node/package-lock.json:delegated,rw
- ./package.json:/home/node/package.json:delegated,rw
- ./webpack.config.js:/home/node/webpack.config.js:delegated,ro
# Source files
- ./flare_portal/static_src:/home/node/flare_portal/static_src:delegated,ro
command: tail -f /dev/null # do nothing forever - exec commands elsewhere
ports:
- 3000:3000
- 3001:3001
utils:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile.utils
volumes:
- ./media:/app/media:delegated
db:
image: postgres:15
expose:
- 5432
environment:
POSTGRES_DB: flare_portal
POSTGRES_USER: flare_portal
POSTGRES_PASSWORD: flare_portal # pragma: allowlist secret
PGDATABASE: flare_portal
PGUSER: flare_portal
PGPASSWORD: flare_portal # pragma: allowlist secret
POSTGRES_HOST_AUTH_METHOD: trust
logging:
driver: none
redis:
image: redis:3.0
expose:
- 6379
logging:
driver: none