Example docker-compose.yaml
file:
- Docker
- Docker Compose
- Github Token with
read:packages
access.
- Login to GitHub containers repository:
echo "GITHUB_TOKEN" | docker login ghcr.io -u GITHUB_USERNAME --password-stdin
- Pull the docker image and prepare files (replace
tempalte
with a real values)
docker pull ghcr.io/template/template:master
docker run --rm --entrypoint cat ghcr.io/template/template:master /app/config.json.dist > config.json
docker run --rm --entrypoint cat ghcr.io/template/template:master /app/docker-compose.prod.yaml > docker-compose.yaml
- Open
config.json
witn an file editor and set up all required data - Run the bot
DB_PASSWORD=YOUR_PASSWORD docker-compose up -d
Or feel free to configure docker-compose.yaml
yourself, according to your desires :)