-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1.17 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
version: "3.8"
services:
monit-js-node:
# build: ./
image: kaier33/monitjs-node-server:v0.18
container_name: monit-js-node
ports:
- 8233:8233
volumes:
# 这里可填服务器存放证书的绝对路径
- .:/monitjs-node-server/ssl
depends_on:
- monit-js-db
- monit-js-redis
networks:
- monit-js-network
environment:
- TZ=Asia/Shanghai
monit-js-db:
restart: always
container_name: monit-js-db
image: mysql:5.7.36
ports:
- 2333:3306
volumes:
- ./volumes/mysql_vol/conf/my.cnf:/etc/mysql/my.cnf
- ./volumes/mysql_vol/data:/var/lib/mysql
- ./volumes/mysql_vol/logs:/logs
networks:
- monit-js-network
environment:
- TZ=Asia/Shanghai
monit-js-redis:
restart: always
container_name: monit-js-redis
image: redis:6.2.6
volumes:
- ./volumes/redis_vol/conf/redis.conf:/etc/redis/redis.conf
- ./volumes/redis_vol/data:/data
ports:
- 2332:6379
command: redis-server --requirepass 123456
networks:
- monit-js-network
environment:
- TZ=Asia/Shanghai
networks:
monit-js-network:
driver: bridge