-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
110 lines (110 loc) · 2.51 KB
/
docker-compose.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
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
103
104
105
106
107
108
109
110
version: '3'
services:
sign:
restart: always
container_name: webase-sign
build:
context: ./docker/WeBASE-Sign
dockerfile: Dockerfile
image: sign
environment:
TZ: Asia/Shanghai
DB_HOST: mysql
DB_DATABASE: sign
DB_PORT: 3306
DB_USERNAME: sign
DB_PASSWORD: sign
links:
- mysql
depends_on:
mysql:
condition: service_healthy
volumes:
- './storage/logs:/dist/log/'
- /etc/localtime:/etc/localtime:ro
ports:
- "5004:5004"
mysql:
restart: always
image: 'biarms/mysql:5.7'
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: sign
MYSQL_USER: sign
MYSQL_PASSWORD: sign
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- mysql:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
healthcheck:
test: ["CMD", "mysql", "-uroot", "-p123456", "-e", "SELECT 1"]
interval: 5s
timeout: 5s
retries: 10
node:
restart: always
container_name: webase-node-mgr
build:
context: ./docker/WeBASE-Node-Manager
dockerfile: Dockerfile
image: node-mgr
environment:
TZ: Asia/Shanghai
DB_HOST: node-mysql
DB_DATABASE: node
DB_PORT: 3306
DB_USERNAME: node
DB_PASSWORD: node
NODE_HOST: 10.0.200.119:5004
links:
- node-mysql
depends_on:
node-mysql:
condition: service_healthy
volumes:
- './storage/logs:/dist/log/'
- './config/hosts:/etc/ansible/hosts'
- './config/ansible.cfg:/etc/ansible/ansible.cfg'
- 'nodes-root:/dist/NODES_ROOT'
- /etc/localtime:/etc/localtime:ro
node-mysql:
restart: always
image: 'biarms/mysql:5.7'
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: node
MYSQL_USER: node
MYSQL_PASSWORD: node
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- node-mysql:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
healthcheck:
test: ["CMD", "mysql", "-uroot", "-p123456", "-e", "SELECT 1"]
interval: 5s
timeout: 5s
retries: 10
web:
restart: always
container_name: web
build:
context: ./docker/WeBASE-Web
dockerfile: Dockerfile
image: web
environment:
TZ: Asia/Shanghai
links:
- node
ports:
- '5000:5000'
volumes:
- /etc/localtime:/etc/localtime:ro
volumes:
mysql:
driver: local
nodes-root:
driver: local
node-mysql:
driver: local