2021-12-01 20:28:13 +08:00
|
|
|
|
version: '3'
|
|
|
|
|
|
services:
|
2025-04-23 20:34:41 +08:00
|
|
|
|
polaris-redis:
|
|
|
|
|
|
image: polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-redis:latest
|
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
healthcheck:
|
|
|
|
|
|
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
|
|
|
|
|
|
interval: 15s
|
|
|
|
|
|
timeout: 5s
|
|
|
|
|
|
retries: 10
|
|
|
|
|
|
start_period: 10s
|
|
|
|
|
|
networks:
|
|
|
|
|
|
- media-net
|
|
|
|
|
|
ports:
|
|
|
|
|
|
- 6379:6379
|
2021-12-01 20:28:13 +08:00
|
|
|
|
volumes:
|
2025-04-23 20:34:41 +08:00
|
|
|
|
- ./redis/conf/redis.conf:/opt/polaris/redis/redis.conf
|
|
|
|
|
|
- ./volumes/redis/data/:/data
|
2021-12-01 20:28:13 +08:00
|
|
|
|
environment:
|
|
|
|
|
|
TZ: "Asia/Shanghai"
|
2025-04-23 20:34:41 +08:00
|
|
|
|
command: redis-server /opt/polaris/redis/redis.conf --appendonly yes
|
|
|
|
|
|
|
|
|
|
|
|
polaris-mysql:
|
|
|
|
|
|
image: polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-mysql:latest
|
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
healthcheck:
|
|
|
|
|
|
test: [ "CMD", "bash", "-c", "cat < /dev/null > /dev/tcp/127.0.0.1/3306" ]
|
|
|
|
|
|
interval: 15s
|
|
|
|
|
|
timeout: 5s
|
|
|
|
|
|
retries: 10
|
|
|
|
|
|
start_period: 10s
|
|
|
|
|
|
networks:
|
|
|
|
|
|
- media-net
|
|
|
|
|
|
environment:
|
|
|
|
|
|
MYSQL_DATABASE: wvp
|
|
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
|
|
|
|
|
MYSQL_USER: root
|
|
|
|
|
|
MYSQL_PASSWORD: root
|
|
|
|
|
|
TZ: Asia/Shanghai
|
|
|
|
|
|
ports:
|
|
|
|
|
|
- 3306:3306
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- ./mysql/conf:/etc/mysql/conf.d
|
|
|
|
|
|
- ./logs/mysql:/logs
|
|
|
|
|
|
- ./volumes/mysql/data:/var/lib/mysql
|
|
|
|
|
|
command: [
|
|
|
|
|
|
'mysqld',
|
|
|
|
|
|
'--default-authentication-plugin=mysql_native_password',
|
|
|
|
|
|
'--innodb-buffer-pool-size=80M',
|
|
|
|
|
|
'--character-set-server=utf8mb4',
|
|
|
|
|
|
'--collation-server=utf8mb4_general_ci',
|
|
|
|
|
|
'--default-time-zone=+8:00',
|
|
|
|
|
|
'--lower-case-table-names=1'
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
polaris-media:
|
|
|
|
|
|
image: polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-media:latest
|
2021-12-01 20:28:13 +08:00
|
|
|
|
restart: always
|
2025-04-23 20:34:41 +08:00
|
|
|
|
networks:
|
|
|
|
|
|
- media-net
|
2021-12-01 20:28:13 +08:00
|
|
|
|
ports:
|
2025-04-23 20:34:41 +08:00
|
|
|
|
- "10935:10935"
|
|
|
|
|
|
- "5540:5540"
|
|
|
|
|
|
- "6080:6080"
|
2021-12-01 20:28:13 +08:00
|
|
|
|
volumes:
|
2025-04-23 20:34:41 +08:00
|
|
|
|
- ./volumes/video:/opt/media/www/record/
|
2021-12-01 20:28:13 +08:00
|
|
|
|
- ./logs/media:/opt/media/log/
|
2025-04-23 20:34:41 +08:00
|
|
|
|
|
|
|
|
|
|
polaris-wvp:
|
|
|
|
|
|
image: polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-wvp:latest
|
|
|
|
|
|
restart: always
|
|
|
|
|
|
networks:
|
|
|
|
|
|
- media-net
|
|
|
|
|
|
ports:
|
|
|
|
|
|
- "18978:18978"
|
|
|
|
|
|
- "8116:8116/udp"
|
|
|
|
|
|
- "8116:8116/tcp"
|
|
|
|
|
|
depends_on:
|
|
|
|
|
|
- polaris-redis
|
|
|
|
|
|
- polaris-mysql
|
|
|
|
|
|
- polaris-media
|
|
|
|
|
|
links:
|
|
|
|
|
|
- polaris-redis
|
|
|
|
|
|
- polaris-mysql
|
|
|
|
|
|
- polaris-media
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- ./wvp/wvp/:/opt/wvp/wvp/
|
|
|
|
|
|
- ./logs/wvp:/opt/wvp/logs/
|
2021-12-01 20:28:13 +08:00
|
|
|
|
environment:
|
|
|
|
|
|
TZ: "Asia/Shanghai"
|
2025-04-23 20:34:41 +08:00
|
|
|
|
# 本机的IP
|
|
|
|
|
|
SIP_HOST: 127.0.0.1
|
|
|
|
|
|
STREAM_HOST: 127.0.0.1
|
|
|
|
|
|
ZLM_HOST: polaris-media
|
|
|
|
|
|
ZLM_PORT: 6080
|
|
|
|
|
|
ZLM_SERCERT: su6TiedN2rVAmBbIDX0aa0QTiBJLBdcf
|
|
|
|
|
|
REDIS_HOST: polaris-redis
|
2021-12-01 20:28:13 +08:00
|
|
|
|
REDIS_PORT: 6379
|
2025-04-23 20:34:41 +08:00
|
|
|
|
DATABASE_HOST: polaris-mysql
|
|
|
|
|
|
DATABASE_PORT: 3306
|
|
|
|
|
|
DATABASE_USER: wvp
|
|
|
|
|
|
DATABASE_PASSWORD: wvp
|
|
|
|
|
|
# 前端跨域配置,nginx容器所在物理机IP
|
|
|
|
|
|
NGINX_HOST: http://127.0.0.1:8080
|
|
|
|
|
|
|
|
|
|
|
|
polaris-nginx:
|
|
|
|
|
|
image: polaris-tian-docker.pkg.coding.net/qt/polaris/polaris-nginx:latest
|
|
|
|
|
|
ports:
|
|
|
|
|
|
- "8080:8080"
|
2021-12-01 20:28:13 +08:00
|
|
|
|
depends_on:
|
2025-04-23 20:34:41 +08:00
|
|
|
|
- polaris-wvp
|
|
|
|
|
|
links:
|
|
|
|
|
|
- polaris-wvp
|
|
|
|
|
|
environment:
|
|
|
|
|
|
WVP_HOST: polaris-wvp
|
|
|
|
|
|
WVP_PORT: 18978
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
|
|
- ./logs/nginx:/var/log/nginx
|
|
|
|
|
|
networks:
|
|
|
|
|
|
- media-net
|
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
|
media-net:
|
|
|
|
|
|
driver: bridge
|