- docker
- docker-compose
-
add the discord token to a file called
discord.tk, placed in root folder -
Production:
- Build the app
docker-compose -d --build
- Stop the application with
docker-compose down
- Build the app
-
Development:
- Build the app
docker-compose -f docker-compose.dev.yaml up -d --build
- Stop the application with
docker-compose -f docker-compose.dev.yaml down
- Build the app
sudo docker volume inspect lotr-triviabot_lotr-triviabot-storage- prints an object, look for Mountpoint value, e.g.
... "Mountpoint": "/var/lib/docker/volumes/lotr-triviabot_lotr-triviabot-storage/_data" ...
- prints an object, look for Mountpoint value, e.g.
-
Starting the application
docker-compose up -d
-
Stopping the application
docker-compose down
-
Show logs
docker logs lotr-triviabot --follow
-
Clean up docker cache/containers..
docker system prune -a
-
Show volumes
sudo docker volume ls