docker configuration file 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:
Single machine 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 default.env to override configuration items that need to be changed.
Execute the following command in /home/docker-compose to verify if all required values used are set:
docker compose configAfter verification passes, execute the following command to export the compose configuration to a file, which is convenient for comparing differences after updating the compose file:
docker compose config > compose-stack.yamlFrontend override directory, used to place project-specific frontend configuration files like _app.config.js:
/home/docker-compose/bus-override: bus frontend override directory/home/docker-compose/track-override: track frontend override directory
Note: After modifying the configuration, you need to execute docker compose up for the files to be overwritten to /data/nginx/html/. Because it uses the overwrite method, it is not recommended to directly modify files inside /data/nginx/html/.
Execute the following command in /home/docker-compose to start docker:
docker compose upExecute the following commands in /home/docker-compose
# Switch to the directory
cd /home/docker-compose
# After modifying configuration each time, remember to backup the configuration for convenient comparison of actual impact 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"# bus frontend
BUS_WEB_VERSION=xxx
# bus backend
BUS_GATEWAY_VERSION=xxx
#...