-
Notifications
You must be signed in to change notification settings - Fork 913
/
docker-compose.stable.yaml
66 lines (63 loc) · 1.22 KB
/
docker-compose.stable.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
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:stable
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
networks:
chatnio-network:
driver: bridge