-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-stack.yml
55 lines (55 loc) · 1 KB
/
docker-stack.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
version: "3"
services:
database:
image: postgres:9.4
volumes:
- db-data:/var/lib/postgresql/data
networks:
- backend
deploy:
placement:
constraints: [node.role == manager]
api:
image: ghimplementationteam/api
ports:
- 1337:1337
networks:
- frontend
- backend
depends_on:
- database
deploy:
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 60s
frontend:
image: ghimplementationteam/frontend
ports:
- 3000:3000
networks:
- backend
depends_on:
- api
deploy:
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 60s
server:
image: nginx-proxy:latest
networks:
- frontend
depends_on:
- frontend
deploy:
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 60s
networks:
frontend:
backend: