-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (63 loc) · 1.79 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (63 loc) · 1.79 KB
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
---
services:
web:
build:
context: .
target: dev
args:
- GIT_COMMIT=
- BUILD_TIME=
- TAG=
env_file:
- path: .env
required: false
environment:
DATABASE_URL: postgres://ons:ons@db:${DB_PORT:-5432}/ons # pragma: allowlist secret
DJANGO_SETTINGS_MODULE: cms.settings.dev
ENABLE_DJANGO_DEFENDER: 'false'
MEDIA_DIR: /app/media/
REDIS_URL: redis://redis
SECRET_KEY: local_dev_secret_key # pragma: allowlist secret
WAGTAILADMIN_BASE_URL: 'http://localhost:${WEB_PORT:-8000}'
STATIC_DIR: /app/static/
STATIC_URL: /static/
KAFKA_SERVERS: broker:9092
WAGTAIL_CORE_ADMIN_LOGIN_ENABLED: true
EMAIL_HOST: mailpit
ports:
- ${WEBPACK_PORT:-3000}:3000 # webpack
- ${WEB_PORT:-8000}:${WEB_PORT:-8000} # runserver
- ${MKDOCS_PORT:-8001}:8001 # mkdocs serve
volumes:
# Mount the repo at /app/
- ./:/app/
# Mount a volume at /app/node_modules to prevent Docker trying to sync the
# contents between the container and the host. This means that the
# node_modules directory can appear to have different contents depending
# on whether you are looking at it from the host or the container, so make
# sure you consistently run Node.js commands from inside the container or
# the host, but not both.
- node_modules:/app/node_modules
init: true
depends_on:
- db
- redis
db:
extends:
file: docker-compose-dev.yml
service: db
redis:
extends:
file: docker-compose-dev.yml
service: redis
broker:
extends:
file: docker-compose-dev.yml
service: broker
mailpit:
extends:
file: docker-compose-dev.yml
service: mailpit
volumes:
node_modules:
pgdata: