-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (101 loc) · 2.15 KB
/
docker-compose.yml
File metadata and controls
102 lines (101 loc) · 2.15 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: '3.7'
services:
redis:
container_name: redis
image: redis
ports:
- 6379:6379
volumes:
- /Users/jinfei/Laboratory/DockerShare/Redis/data:/data
deploy:
resources:
limits:
cpus: '0.05'
memory: 500M
reservations:
cpus: '0.01'
memory: 200M
restart_policy:
condition: on-failure
max_attempts: 3
window: 120s
mariadb:
container_name: mariadb
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: Vosung123
ports:
- 3306:3306
volumes:
- /Users/jinfei/Laboratory/DockerShare/MariaDB/conf:/etc/mysql
- /Users/jinfei/Laboratory/DockerShare/MariaDB/data:/var/lib/mysql
deploy:
resources:
limits:
cpus: '0.05'
memory: 500M
reservations:
cpus: '0.05'
memory: 20M
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
pconnect-center:
container_name: pconnect-center
image: pconnect-center
restart: always
expose:
- 8961
ports:
- 8961
depends_on:
- redis
- mariadb
links:
- redis:redis
- mariadb:mariadb
pconnect-gate:
container_name: pconnect-gate
image: pconnect-gate
restart: always
expose:
- 8965
ports:
- 8965
depends_on:
- redis
- mariadb
links:
- redis:redis
- mariadb:mariadb
pconnect-user:
container_name: pconnect-user
image: pconnect-user
restart: always
expose:
- 8964
ports:
- 8964
depends_on:
- redis
- mariadb
links:
- redis:redis
- mariadb:mariadb
pconnect-todo:
container_name: pconnect-todo
image: pconnect-todo
restart: always
expose:
- 8970
ports:
- 8970
depends_on:
- redis
- mariadb
links:
- redis:redis
- mariadb:mariadb