docker configuration repository
curl -fsSL https://raw.githubusercontent.com/TranscodeGroup/docker/master/download-and-install.sh | sudo bashmkdir -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 example:
Single machine separate deployment:
- bus-http: Bus http single machine deployment
- bus-https: Bus https single machine deployment
- track-http: Tracker V2 http single machine deployment
- track-https: Tracker V2 https single machine deployment
Distributed deployment:
- video-storage: RTP storage
- video-stream: RTP video
Create /home/docker-compose/.env file, refer to default.en.env to override the configuration items that need to be changed.
Execute the following command in /home/docker-compose to verify whether all required values used have been set:
docker compose configAfter passing the verification, execute the following command to export the compose configuration to a file, so as to compare the differences after updating the compose file:
docker compose config > compose-stack.yamlFrontend override directory, 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 the configuration, you need to execute docker compose up for the file to be overwritten to /data/nginx/html/. Because it uses the overwrite method, it is not recommended to directly modify the 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
# Switch to the directory
cd /home/docker-compose
# After modifying the configuration each time, remember to back up the configuration to compare the actual impact difference
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 local warehouse
git commit -m "Initial commit"