-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (49 loc) · 1.47 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
---
services:
web:
build:
context: .
target: dev
env_file:
- path: .env
required: false
environment:
HEROKU_APP_NAME: local # this stops Birdbath's HerokuNotProductionCheck complaining
DATABASE_URL: postgres://ons:ons@db: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:8000'
STATIC_DIR: /app/static/
STATIC_URL: /static/
ports:
- 3000:3000 # webpack
- 8000:8000 # runserver
- 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
volumes:
node_modules:
pgdata: