Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SERVER_HOSTNAME='' # livedvr.tripsdd.com

# 使用https时, 必填, 证书文件的绝对路径, 排除.crt/.key后缀, nginx实际读取的是 ${SSL_CERTIFICATE}.crt 和 ${SSL_CERTIFICATE}.key 两个文件
# 如果暂时没有申请到证书, 可以使用内置的假证书: /home/docker/nginx/ssl/placeholder
# 若使用crotbot自动申请证书, 证书的路径会在日志中打印, 一般为: /data/certbot/live/${SERVER_HOSTNAME}/certificate
# 若使用crotbot自动申请证书, 需要先单独启动一次(docker compose up crotbot), 申请到的证书路径会在日志中打印, 然后将它添加到变量中, 一般为: /data/certbot/live/${SERVER_HOSTNAME}/certificate,
SSL_CERTIFICATE='' # /home/docker-compose/ssl/livedvr_tripsdd_com

# bus和track部署在同一台服务器上时, 需要通过域名区分两者
Expand Down
4 changes: 0 additions & 4 deletions bus/compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
gateway_808_2019:
image: transcodegroup/gateway-808-2019:${BUS_GATEWAY_808_2019_VERSION:?required}
container_name: gateway_808_2019
restart: always
volumes:
- ${DATA_DIR:-/data}/files:/data/files
Expand Down Expand Up @@ -54,7 +53,6 @@ services:
# spring-boot后端
gateway_web:
image: transcodegroup/gateway-web:${BUS_GATEWAY_VERSION:?required}
container_name: gateway_web
restart: always
volumes:
- ${DATA_DIR:-/data}/files:/data/files
Expand Down Expand Up @@ -105,7 +103,6 @@ services:
# spring-boot调度
gateway_dispatch:
image: transcodegroup/gateway-dispatch:${BUS_GATEWAY_VERSION:?required}
container_name: gateway_dispatch
restart: always
volumes:
- ${DATA_DIR:-/data}/files:/data/files
Expand Down Expand Up @@ -153,7 +150,6 @@ services:
# 主动安全
gateway_jsatl12:
image: transcodegroup/gateway-jsatl12:${BUS_GATEWAY_JSATL12_VERSION:?required}
container_name: gateway_jsatl12
restart: always
ports:
- ${JTT808_PORT_FILE}:${JTT808_PORT_FILE}
Expand Down
5 changes: 2 additions & 3 deletions examples/bus-http/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ include:
- ../docker/rabbitmq/compose.yml
- ../docker/redis/compose.yml
- ../docker/bus/compose.yml
- path:
- ../docker/video-nginx/compose.yml
- ../docker/video-nginx/compose.http.yml
- path:
- ../docker/video/compose.yml
- ../docker/video/compose.bus.yml
Expand All @@ -16,6 +13,8 @@ include:
- ../docker/nginx/compose.yml
- ../docker/nginx/compose.bus.yml
- ../docker/nginx/compose.bus.http.yml
- ../docker/nginx/compose.video.yml
- ../docker/nginx/compose.video.http.yml
- path:
- ../docker/web-downloader/compose.yml
- ../docker/web-downloader/compose.bus.yml
5 changes: 3 additions & 2 deletions examples/bus-https/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ include:
- ../docker/rabbitmq/compose.yml
- ../docker/redis/compose.yml
- ../docker/bus/compose.yml
- ../docker/video-nginx/compose.yml
- ../docker/certbot/compose.yml
- path:
- ../docker/video/compose.yml
Expand All @@ -15,6 +14,8 @@ include:
- ../docker/nginx/compose.yml
- ../docker/nginx/compose.bus.yml
- ../docker/nginx/compose.bus.https.yml
- ../docker/nginx/compose.video.yml
- ../docker/nginx/compose.video.https.yml
- path:
- ../docker/web-downloader/compose.yml
- ../docker/web-downloader/compose.yml
- ../docker/web-downloader/compose.bus.yml
66 changes: 0 additions & 66 deletions examples/bus-https/ssl/tg_com.crt

This file was deleted.

27 changes: 0 additions & 27 deletions examples/bus-https/ssl/tg_com.key

This file was deleted.

12 changes: 6 additions & 6 deletions examples/video-storage/.env
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## 视频服务器
VIDEO_IP=58.82.168.181
VIDEO_HOSTNAME=livedvr.tripsdd.com
SERVER_IP_PUBLIC=58.82.168.181
SERVER_HOSTNAME=livedvr.tripsdd.com
# 证书文件的绝对路径, 排除.crt/.key后缀, nginx使用的是 $VIDEO_SSL_CERTIFICATE.crt 和 $VIDEO_SSL_CERTIFICATE.key 两个文件
VIDEO_SSL_CERTIFICATE=/home/docker-compose/ssl/livedvr_tripsdd_com
SSL_CERTIFICATE=/home/docker/nginx/ssl/placeholder

## 网关服务器
JTT808_HOST=103.20.204.149

# RABBITMQ
RABBITMQ_HOST=1111 # 58.82.168.181
RABBITMQ_HOST=58.82.168.182
RABBITMQ_PORT=5672
RABBITMQ_PASSWORD=111 # 123
RABBITMQ_PASSWORD=123456

# MINIO
MINIO_PASSWORD=11 # xxxxxxxxxxxxxxxx
MINIO_PASSWORD=123456
6 changes: 4 additions & 2 deletions examples/video-storage/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ include:
- ../docker/video/compose.yml
- ../docker/video/compose.storage.yml
- path:
- ../docker/video-nginx/compose.yml
- ../docker/video-nginx/compose.minio.yml
- ../docker/nginx/compose.yml
- ../docker/nginx/compose.video.yml
- ../docker/nginx/compose.video.https.yml
- ../docker/nginx/compose.video-minio.yml
8 changes: 4 additions & 4 deletions examples/video-stream/.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## 视频服务器
VIDEO_IP=58.82.168.181
VIDEO_HOSTNAME=livedvr.tripsdd.com
SERVER_IP_PUBLIC=58.82.168.181
SERVER_HOSTNAME=livedvr.tripsdd.com
# 证书文件的绝对路径, 排除.crt/.key后缀, nginx使用的是 $VIDEO_SSL_CERTIFICATE.crt 和 $VIDEO_SSL_CERTIFICATE.key 两个文件
VIDEO_SSL_CERTIFICATE=/home/docker-compose/ssl/livedvr_tripsdd_com
SSL_CERTIFICATE=/home/docker/nginx/ssl/placeholder

## 网关服务器
JTT808_HOST=103.20.204.149
JTT808_HOST=103.20.204.149
5 changes: 4 additions & 1 deletion examples/video-stream/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# 默认开放端口: 直播9000,录像9001,对接9002, 监听9003,广播9004,RTMP9005:1935(srs)
# Nginx代理9085-9089: http-flv(srs:8080端口), wss(rtp:9006端口), 拦截mdvr和ws关键字
include:
- ../docker/video-nginx/compose.yml
- path:
- ../docker/nginx/compose.yml
- ../docker/nginx/compose.video.yml
- ../docker/nginx/compose.video.https.yml
- path:
- ../docker/video/compose.yml
1 change: 0 additions & 1 deletion jtt808/compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
jtt808:
image: transcodegroup/jtt808-server:${TRACK_JTT808_VERSION:?required}
container_name: jtt808_server
restart: always
ports:
- ${JTT808_PORT}:${JTT808_PORT}
Expand Down
1 change: 0 additions & 1 deletion maintain/compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
maintain:
image: transcodegroup/maintain-server:${TRACK_MAINTAIN_VERSION:?required}
container_name: maintain
restart: always
volumes:
- /etc/localtime:/etc/localtime
Expand Down
1 change: 0 additions & 1 deletion minio/compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
minio:
image: minio/minio:RELEASE.2024-08-03T04-33-23Z
container_name: minio
restart: always
ports:
# 原生端口是9000和9001, 规避RTP服务端口冲突, 所以-1000
Expand Down
1 change: 0 additions & 1 deletion mongodb/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
services:
mongodb:
container_name: mongodb
image: mongo
restart: always
privileged: true
Expand Down
1 change: 0 additions & 1 deletion mysql-backup/compose.cbus.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
mysql-cron-backup-cbus:
image: fradelg/mysql-cron-backup
container_name: mysql-cron-backup-cbus
volumes:
- "${DATA_DIR:-/data}/mysql8/backup:/backup"
- /etc/localtime:/etc/localtime:ro
Expand Down
1 change: 0 additions & 1 deletion mysql-backup/compose.maintain.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
mysql-cron-backup-maintain:
image: fradelg/mysql-cron-backup
container_name: mysql-cron-backup-maintain
volumes:
- "${DATA_DIR:-/data}/mysql8/backup:/backup"
- /etc/localtime:/etc/localtime:ro
Expand Down
1 change: 0 additions & 1 deletion mysql8/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ services:
image: mysql:8.4
# 国内拦了 用加速站
#image: docker.m.daocloud.io/mysql:8.4
container_name: mysql8
restart: always
ports:
- ${MYSQL_PORT:-3306}:3306
Expand Down
3 changes: 3 additions & 0 deletions nginx/compose.bus.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
services:
nginx:
depends_on:
- gateway_web
- gateway_dispatch
configs:
- source: bus.conf.template
target: /etc/nginx/templates/bus.conf.template
Expand Down
3 changes: 3 additions & 0 deletions nginx/compose.track.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
services:
nginx:
depends_on:
- maintain
- minio
configs:
- source: track.conf.template
target: /etc/nginx/templates/track.conf.template
Expand Down
14 changes: 14 additions & 0 deletions nginx/compose.video-minio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
nginx:
depends_on:
- minio
configs:
- source: video-minio.conf.template
target: /etc/nginx/templates/video-minio.conf.template
environment:
- MINIO_HOST=${MINIO_HOST}
- MINIO_PORT=${MINIO_PORT}

configs:
video-minio.conf.template:
file: ./conf/conf.d/video-minio.conf.template
10 changes: 10 additions & 0 deletions nginx/compose.video.http.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
nginx:
configs:
# 使用http的配置覆盖
- source: video-http.conf.template
target: /etc/nginx/templates/video.conf.template

configs:
video-http.conf.template:
file: ./conf/conf.d/video-http.conf.template
3 changes: 3 additions & 0 deletions nginx/compose.video.https.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
services:
nginx:
# file://./compose.video.yml 已经是https的配置了, 不需要覆写其他设置, 该文件只是为了和 file://./compose.video.http.yml 对齐
37 changes: 37 additions & 0 deletions nginx/compose.video.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
services:
nginx:
ports:
# 视频直播,映射srs端口
- ${VIDEO_PORT_HTTPS_0}:${VIDEO_PORT_HTTPS_0}
- ${VIDEO_PORT_HTTPS_1}:${VIDEO_PORT_HTTPS_1}
- ${VIDEO_PORT_HTTPS_2}:${VIDEO_PORT_HTTPS_2}
- ${VIDEO_PORT_HTTPS_3}:${VIDEO_PORT_HTTPS_3}
- ${VIDEO_PORT_HTTPS_4}:${VIDEO_PORT_HTTPS_4}
- ${VIDEO_PORT_HTTPS_5}:${VIDEO_PORT_HTTPS_5}
depends_on:
- srs
- rtp
secrets:
- video-ssl-certificate
- video-ssl-certificate-key
configs:
# 默认启动https的配置
- source: video-https.conf.template
target: /etc/nginx/templates/video.conf.template
environment:
- VIDEO_PORT_HTTPS_0=${VIDEO_PORT_HTTPS_0}
- VIDEO_PORT_HTTPS_1=${VIDEO_PORT_HTTPS_1}
- VIDEO_PORT_HTTPS_2=${VIDEO_PORT_HTTPS_2}
- VIDEO_PORT_HTTPS_3=${VIDEO_PORT_HTTPS_3}
- VIDEO_PORT_HTTPS_4=${VIDEO_PORT_HTTPS_4}
- VIDEO_PORT_HTTPS_5=${VIDEO_PORT_HTTPS_5}

secrets:
video-ssl-certificate:
file: ${VIDEO_SSL_CERTIFICATE:?required}.crt
video-ssl-certificate-key:
file: ${VIDEO_SSL_CERTIFICATE:?required}.key

configs:
video-https.conf.template:
file: ./conf/conf.d/video-https.conf.template
1 change: 0 additions & 1 deletion nginx/compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
nginx:
image: nginx:1.27.4
container_name: nginx
restart: always
ports:
- ${WEB_PORT_HTTPS:-443}:443
Expand Down
1 change: 0 additions & 1 deletion rabbitmq/compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
restart: always
ports:
# 加密的 AMQP 协议端口
Expand Down
1 change: 0 additions & 1 deletion redis/compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
redis:
image: redis
container_name: redis
restart: always
# 启用持久化 增加密码 降低日志级别 限制数据库数量
command: --appendonly yes --requirepass "${REDIS_PASSWORD:?required}" --loglevel warning --databases 3
Expand Down
Loading