-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-stack.yml
57 lines (57 loc) · 1.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
56
57
version: "3"
services:
app-back:
image: itwars/mygo
networks:
- mongo-go
- nginx-go
ports:
- 3000:3000
depends_on:
- mongodb
deploy:
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
nginx:
image: itwars/nginx-http2
volumes:
- /home/vrh/docker/myrepo/stack-mongo-golang-vuejs-nginx/nginx-http2/conf/:/etc/nginx/conf.d/
ports:
- 80:80
- 443:443
networks:
- nginx-go
depends_on:
- app-back
deploy:
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
mongodb:
image: itwars/mongodb
volumes:
- mongodb-data:/data/db
networks:
- mongo-go
ports:
- 27017:27017
- 28017:28017
deploy:
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
networks:
mongo-go:
nginx-go:
volumes:
mongodb-data: