-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
56 lines (54 loc) · 1.29 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
52
53
54
55
56
version: '3.9'
services:
db:
image: postgres:13
volumes:
- .:/app
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: 'password'
POSTGRES_DB: 'local-intelligence'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
working_dir: /app
web:
image: mysociety/local-intelligence-hub:${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/local-intelligence'
EMAIL_HOST: email.svc
CACHE_FILE: 'data/cache'
MAPIT_URL: 'https://mapit.mysociety.org/'
GOOGLE_ANALYTICS: ${GOOGLE_ANALYTICS:-}
GOOGLE_SITE_VERIFICATION: ${GOOGLE_SITE_VERIFICATION:-}
DJANGO_SUPERUSER_USERNAME: 'admin'
DJANGO_SUPERUSER_PASSWORD: 'password'
DJANGO_SUPERUSER_EMAIL: 'admin@localhost'
working_dir: /app
mailhog:
image: mailhog/mailhog:v1.0.1
ports:
- 1025:1025
- 8025:8025
networks:
default:
aliases:
- email.svc
volumes:
pgdata:
build:
node_modules: