-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (50 loc) · 1.18 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:
db:
image: postgis/postgis:13-3.3
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: 'password'
POSTGRES_DB: 'neighbourhood-warmth'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
web:
image: mysociety/neighbourhood-warmth:${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/neighbourhood-warmth'
EMAIL_HOST: email.svc
CACHE_FILE: 'data/cache'
MAPIT_URL: 'https://mapit.mysociety.org/'
DJANGO_SUPERUSER_USERNAME: 'admin'
DJANGO_SUPERUSER_PASSWORD: 'password'
DJANGO_SUPERUSER_EMAIL: 'admin@localhost'
working_dir: /app
mailhog:
image: mailhog/mailhog:v1.0.1
restart: always
ports:
- 1025:1025
- 8025:8025
networks:
default:
aliases:
- email.svc
volumes:
pgdata:
node_modules: