forked from coaidev/coai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.watch.yaml
76 lines (72 loc) · 1.43 KB
/
docker-compose.watch.yaml
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
version: '3'
services:
mysql:
image: mysql:latest
container_name: db
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: chatnio
MYSQL_USER: chatnio
MYSQL_PASSWORD: chatnio123456!
TZ: Asia/Shanghai
expose:
- "3306"
volumes:
- ./db:/var/lib/mysql
networks:
- chatnio-network
redis:
image: redis:latest
container_name: redis
restart: always
expose:
- "6379"
volumes:
- ./redis:/data
networks:
- chatnio-network
chatnio:
image: programzmh/chatnio
container_name: chatnio
restart: always
ports:
- "8000:8094"
depends_on:
- mysql
- redis
links:
- mysql
- redis
ulimits:
nofile:
soft: 65535
hard: 65535
environment:
MYSQL_HOST: mysql
MYSQL_USER: chatnio
MYSQL_PASSWORD: chatnio123456!
MYSQL_DB: chatnio
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: ""
REDIS_DB: 0
SERVE_STATIC: "true"
volumes:
- ./config:/config
- ./logs:/logs
- ./storage:/storage
networks:
- chatnio-network
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30
networks:
- chatnio-network
networks:
chatnio-network:
driver: bridge