-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 1023 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
34
35
36
37
38
39
40
41
42
43
44
45
version: "2"
services:
nginx:
image: jwilder/nginx-proxy
restart: always
ports:
- "4001:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
db:
image: "postgres:9.5"
restart: always
environment:
POSTGRES_USER: loadmaster
POSTGRES_PASSWORD: loadmaster
POSTGRES_DB: loadmaster_prod
volumes:
- dbdata:/var/lib/postgres
loadmaster:
depends_on:
- db
- nginx
image: "dsander/loadmaster:latest"
restart: always
environment:
REPLACE_OS_VARS: 'true'
DB_HOST: db
DB_USER: loadmaster
DB_PASSWORD: loadmaster
DATABASE_NAME: loadmaster_prod
PORT: "4000"
SECRET_KEY_BASE: "changemechangemechangemechangemechangemechangemechangemechangeme"
INVITATION_TOKEN: "try-loadmaster"
VIRTUAL_HOST: "127.0.0.1.xip.io"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "127.0.0.1:4000:4000"
links:
- "db:db"
volumes:
dbdata:
driver: local