-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
47 lines (42 loc) · 1 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
version: '3.8'
services:
minaplay-mysql:
image: "mysql:8"
container_name: minaplay-mysql
networks:
- minaplay-network
environment:
- TZ=Asia/Shanghai
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=minaplay
restart: always
volumes:
- mysql-data:/var/lib/mysql
minaplay-redis:
image: "redis:latest"
container_name: minaplay-redis
networks:
- minaplay-network
restart: always
minaplay:
image: "nepsyn/minaplay:latest"
container_name: minaplay
networks:
- minaplay-network
volumes:
- ./data:/app/data
environment:
- DB_HOST=minaplay-mysql
- REDIS_HOST=minaplay-redis
- MS_ANNOUNCED_ADDRESS=127.0.0.1 # 在需要放映室语音通话服务的情况下改为宿主机外部访问地址
ports:
- "3000:3000"
- "12000-12999:12000-12999"
depends_on:
- minaplay-mysql
- minaplay-redis
restart: unless-stopped
volumes:
mysql-data:
networks:
minaplay-network: