-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 1.01 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
version: '3.9'
services:
db:
image: postgres:13
volumes:
- .:/app
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: 'password'
POSTGRES_DB: 'twfy-votes'
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
working_dir: /app
web:
image: mysociety/twfy-votes-django:${TAG:-latest}
build: .
command: /app/script/server --development
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
tty: true
environment:
SECRET_KEY: 'secret'
DEBUG: 1
DATABASE_URL: 'postgres://postgres:password@db/twfy-votes'
EMAIL_HOST: email.svc
CACHE_FILE: 'data/cache'
GOOGLE_ANALYTICS: ${GOOGLE_ANALYTICS:-}
DJANGO_SUPERUSER_USERNAME: 'admin'
DJANGO_SUPERUSER_PASSWORD: 'password'
DJANGO_SUPERUSER_EMAIL: 'admin@localhost'
working_dir: /app
volumes:
pgdata:
build:
node_modules: