-
Notifications
You must be signed in to change notification settings - Fork 40
/
docker-compose.yml
67 lines (60 loc) · 1.24 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
66
67
version: '3.3'
services:
nginx:
image: nginx:alpine
read_only: true
ports:
- "8080:80"
volumes:
- ./ui/:/usr/share/nginx/html/:ro
- ./default.conf:/etc/nginx/conf.d/default.conf:ro
- /var/cache/nginx/
- /var/run/
- /logs/
depends_on:
- restcount
- restip
visualizer:
image: dockersamples/visualizer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- 'CTX_ROOT=/visualizer'
restcount:
image: francescou/rest-count:1.0
healthcheck:
test: ["CMD", "wget", "-sq", "http://localhost:8000/api/v1/health"]
interval: 5s
timeout: 5s
retries: 3
deploy:
replicas: 2
update_config:
parallelism: 1
delay: 20s
read_only: true
depends_on:
- redis
restip:
image: francescou/rest-ip:1.0
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/v1/health"]
interval: 5s
timeout: 5s
retries: 3
deploy:
replicas: 2
update_config:
parallelism: 1
delay: 20s
read_only: true
depends_on:
- mongo
redis:
image: redis:3.2.0-alpine
read_only: true
mongo:
image: mongo:3.3.6
read_only: true
volumes:
- /tmp/