-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (68 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
72 lines (68 loc) · 1.29 KB
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
68
69
70
71
72
version: "3"
services:
web:
image: f4814n/css-server:v1.1.5
deploy:
replicas: 4
resources:
limits:
cpus: "0.3"
memory: 200M
restart_policy:
condition: on-failure
environment:
DB_IP: "mongo"
KEY_FILE: "/app/key/keyfile"
ports:
- "80:80"
- "443:443"
networks:
- webnet
volumes:
- "key:/app/key"
- "cert:/cert"
mongo:
image: mongo:4.0
deploy:
mode: global
placement:
constraints:
- node.role == manager
resources:
limits:
cpus: "0.3"
memory: 600M
restart_policy:
condition: on-failure
command: ["mongod", "--dbpath", "/data/db"]
ports:
- "27017:27017"
volumes:
- "database:/data/db"
networks:
- webnet
monitor:
image: dockersamples/visualizer:stable
deploy:
replicas: 2
resources:
limits:
cpus: "0.05"
memory: 50M
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == manager
ports:
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- webnet
networks:
webnet:
volumes:
database:
key:
cert: