Docker configuration files repository
mkdir -p /home/docker-compose
mkdir /data
git clone https://github.com/TranscodeGroup/docker.git /home/dockerCreate /home/docker-compose/compose.yaml file, refer to the following examples:
Standalone Deployment:
- bus-http: Bus HTTP standalone deployment
- bus-https: Bus HTTPS standalone deployment
- track-http: Tracker V2 HTTP standalone deployment
- track-https: Tracker V2 HTTPS standalone deployment
Distributed Deployment:
- video-storage: RTP storage
- video-stream: RTP video
Create /home/docker-compose/.env file, refer to .env.default to override configuration items as needed.
Execute the following command in /home/docker-compose to verify all required values have been set:
docker compose configAfter validation passes, execute the following command to export the compose configuration to a file, making it easier to compare differences after updating compose files:
docker compose config > compose-stack.yamlFrontend override directories, used to place project-specific frontend configuration files such as _app.config.js:
/home/docker-compose/bus-override: Bus frontend override directory/home/docker-compose/track-override: Track frontend override directory
Note: After modifying configurations, you need to execute docker compose up for the files to be copied to /data/nginx/html/. Since files are overwritten, it is not recommended to directly modify files in /data/nginx/html/.
Execute the following command in /home/docker-compose to start docker:
docker compose upExecute the following commands in /home/docker-compose:
# Change to the directory
cd /home/docker-compose
# After each configuration change, remember to backup the configuration for easy comparison of actual differences
docker compose config > compose-stack.yaml
# Configure GIT account
git config --global user.name "tg"
git config --global user.email tg@gmail.com
# Initialize GIT
git init
# Add to staging area
git add -A
# Commit to local repository
git commit -m "Initial commit"When updating versions, remember to synchronize the scripts under mysql:
# Bus frontend
BUS_WEB_VERSION=xxx
# Bus backend
BUS_GATEWAY_VERSION=xxx
#...