-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
executable file
·52 lines (52 loc) · 1.07 KB
/
docker-compose.prod.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
version: "3"
services:
server:
image: nuxt-crud-server:latest
ports:
- "3000:3000"
environment:
- HOST=0.0.0.0
- PORT=3000
networks:
- net
deploy:
replicas: 2
update_config:
parallelism: 2
restart_policy:
condition: on-failure
placement:
constraints: [node.role == manager]
client:
image: nuxt-crud-client:latest
ports:
- "8000:8000"
environment:
- HOST=0.0.0.0
- PORT=8000
- API_URL=http://server:3000/ # server -> services (just bellow version: "3")
networks:
- net
depends_on:
- server
deploy:
replicas: 2
update_config:
parallelism: 2
restart_policy:
condition: on-failure
placement:
constraints: [node.role == manager]
visualizer:
image: dockersamples/visualizer:stable
ports:
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
placement:
constraints: [node.role == manager]
networks:
- net
networks:
net: