forked from mysociety/fixmystreet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (63 loc) · 1.51 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
57
58
59
60
61
62
63
64
65
version: '3'
services:
nginx:
image: nginx:1.15.3
depends_on:
- fixmystreet
ports:
- "8000:80"
volumes:
- ./conf/nginx.conf-docker:/etc/nginx/conf.d/default.conf
networks:
default:
aliases:
- nginx.svc
fixmystreet:
image: fixmystreet/fixmystreet:stable
tty: true
depends_on:
postgres:
condition: service_healthy
memcached:
condition: service_started
volumes:
- ./conf/general.yml-docker:/var/www/fixmystreet/fixmystreet/conf/general.yml
environment:
POSTGRES_PASSWORD: 'password'
FMS_DB_HOST: 'postgres.svc'
FMS_DB_PASS: 'fms'
FMS_DB_NAME: 'fixmystreet'
FMS_DB_USER: 'fms'
FMS_ROOT: '/var/www/fixmystreet/fixmystreet'
SUPERUSER_EMAIL: 'superuser@example.org'
SUPERUSER_PASSWORD: '5up3r53cr3t'
networks:
default:
aliases:
- fixmystreet.svc
postgres:
image: fixmystreet/postgres:9.6-en_GB
restart: always
volumes:
- fixmystreet-pgdata:/var/lib/postgresql/data/pgdata
environment:
POSTGRES_PASSWORD: 'password'
PGDATA: '/var/lib/postgresql/data/pgdata'
networks:
default:
aliases:
- postgres.svc
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
memcached:
image: memcached:1.5.10
restart: always
networks:
default:
aliases:
- memcached.svc
volumes:
fixmystreet-pgdata: