-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (40 loc) · 985 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
version: '2'
services:
web:
image: sergkoba/juggler:latest
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: juggler=true
command: mix phoenix.server
environment:
- MIX_ENV=prod
- PORT=4000
- PG_HOST=postgres
- PG_USERNAME=postgres
volumes:
- /var/run/docker.sock:/var/run/docker.sock
links:
- postgres
- redis
postgres:
image: postgres:latest
labels:
io.rancher.scheduler.affinity:host_label: juggler=true
ports:
- "5432"
redis:
image: redis:2.8
labels:
io.rancher.scheduler.affinity:host_label: juggler=true
volumes:
- /data
ports:
- "6379"
lb:
ports:
- 80:80/tcp
labels:
io.rancher.container.create_agent: 'true'
io.rancher.container.agent.role: environmentAdmin
io.rancher.scheduler.affinity:host_label: juggler=true
image: rancher/lb-service-haproxy:v0.6.2