-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
123 lines (109 loc) · 2.48 KB
/
docker-compose.yml
File metadata and controls
123 lines (109 loc) · 2.48 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
version: "2"
services:
redis:
image: redis:3-alpine
environment:
- TZ=${TZ}
- MYKEY=${MYVALUE}
ports: ["6379:6379"]
networks:
- front-tier
postgres:
image: postgres:9.6-alpine
ports: ["5432:5432"]
environment:
- POSTGRES_USER=postgres
- TZ=${TZ}
volumes:
- "db-data:/var/lib/postgresql/data"
networks:
- back-tier
vote:
image: "vertxswarm/verticle-vote:${TAG_VOTE}"
ports:
- 8080:8080
environment:
- TZ=${TZ}
restart: always
depends_on:
- condition : redis
- healthy
networks:
- front-tier
labels:
- "traefik.frontend.entryPoints=http"
- "traefik.backend=vote"
- "traefik.port=8080"
- "traefik.frontend.rule=Host:${URL_VOTE}"
result:
image: "vertxswarm/verticle-result:${TAG_RESULT}"
ports:
- 8081:8081
restart: always
environment:
- TZ=${TZ}
depends_on:
- postgres
networks:
- back-tier
labels:
- "traefik.frontend.entryPoints=http"
- "traefik.backend=result"
- "traefik.port=8081"
- "traefik.frontend.rule=Host:${URL_RESULT}"
worker:
image: "vertxswarm/verticle-worker:${TAG_WORKER}"
environment:
- TZ=${TZ}
depends_on:
- postgres
- redis
restart: always
networks:
- front-tier
- back-tier
sozu:
image: geal/sozu
command: ["start", "-c", "/etc/sozu/sozu.toml"]
volumes:
- ./reverse-proxy/sozu/config.toml:/etc/sozu/sozu.toml
- sozu-socket:/var/run/sozu
ports:
- "80:80"
networks:
- front-tier
- back-tier
sozu-manager:
image: geal/manager
#entrypoint: ["sh"]
command: ["--config", "/etc/sozu/sozu.toml", "--api", "http://traefik:8080/api"]
volumes:
- ./reverse-proxy/sozu/config.toml:/etc/sozu/sozu.toml
- sozu-socket:/var/run/sozu
depends_on:
- sozu
- traefik
networks:
- front-tier
- back-tier
traefik:
image: traefik:1.3.0
command: --web --docker --docker.domain=${CU_DOMAIN} --logLevel=DEBUG --docker.exposedbydefault=true --docker.watch=true
environment:
- "TZ=${TZ}"
ports:
- "9090:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./reverse-proxy/discovery/traefik.toml:/traefik.toml
labels:
- "traefik.enable=false"
networks:
- front-tier
- back-tier
volumes:
db-data:
sozu-socket:
networks:
front-tier:
back-tier: