-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.06 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
version: "3.7"
services:
cc_server:
build: .
container_name: cc_server
# restart: unless-stopped
env_file: .env
volumes:
- .:/cc_server
ports:
- 3000:3000
expose:
- 3000
networks:
- container_network
depends_on:
- cc_mysql
- cc_redis
cc_mysql:
container_name: cc_mysql
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
# restart: always
env_file: .env
ports:
- "127.0.0.1:3306:3306"
expose:
- 3306
volumes:
- ./db/scripts/:/docker-entrypoint-initdb.d/
- ./db/data/MySQL/:/var/lib/mysql/
networks:
- container_network
cap_add:
- SYS_NICE
cc_redis:
container_name: cc_redis
image: redis:latest
command: redis-server --requirepass $REDIS_PASSWORD --bind cc_redis --port 6379
env_file: .env
ports:
- "127.0.0.1:6379:6379"
expose:
- 6379
volumes:
- ./db/data/Redis:/data
networks:
- container_network
networks:
container_network:
driver: bridge