-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack
60 lines (59 loc) · 1.1 KB
/
stack
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
# docker-compose -f stack up --build >> docker-compose -f stack down
version: '3.7'
services:
nginx:
image: nginx:custom
build:
context: .
dockerfile: dockerfile-nginx
volumes:
- nginx:/etc/nginx
networks:
- lavih
ports:
- 80:80
- 443:443
# restart_policy:
# condition: always
node1:
image: node1
build:
context: .
dockerfile: dockerfile-nodejs1
networks:
- lavih
ports:
- 3001:3001
# restart_policy:
# condition: always
node2:
image: node2
build:
context: .
dockerfile: dockerfile-nodejs2
networks:
- lavih
ports:
- 3002:3002
# restart_policy:
# condition: alway
node3:
image: node3
build:
context: .
dockerfile: dockerfile-nodejs3
networks:
- lavih
ports:
- 3003:3003
# restart_policy:
# condition: always
client:
image: alpine:latest
networks:
- lavih
command: sh -c "ping 8.8.8.8"
networks:
lavih:
volumes:
nginx: