forked from nhsuk-archive/wagtail-reacttaxonomy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
33 lines (32 loc) · 971 Bytes
/
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
version: '3'
services:
db:
image: "postgres:11"
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5432:5432"
volumes:
- ${LOCAL_WORKSPACE_FOLDER:-.}/db:/var/lib/postgresql/data
web:
environment:
HAY_DEBUG: "True"
DB_NAME: "${DB_NAME:-master}"
DB_HOST: "${DB_HOST}"
DB_PORT: "${DB_PORT}"
DB_USER: "${DB_USER}"
DB_PASSWORD: "${DB_PASSWORD}"
AZURE_ACCOUNT_NAME: ${AZURE_ACCOUNT_NAME}
AZURE_ACCOUNT_KEY: ${AZURE_ACCOUNT_KEY}
AZURE_CONTAINER: ${AZURE_CONTAINER}
INDEXER_TASK_QUEUE_NAME: ${INDEXER_TASK_QUEUE_NAME}
SITE_ENV: 'Live'
CMS_ENV: ${CMS_ENV}
build: .
command: bash -c "./scripts/wait-for-it.sh db:5432 -- python3 ./manage.py migrate && python3 manage.py load_test_data_fixtures && python3 ./manage.py runserver 0.0.0.0:8000"
volumes:
- ${LOCAL_WORKSPACE_FOLDER:-.}:/code
ports:
- "8000:8000"
depends_on:
- db