From 24f10d09d32d22dc5c8c9580cabfb4b7941184ef Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Wed, 10 Mar 2021 13:47:23 +0100 Subject: [PATCH] Add better description for docker-compose --- README.md | 3 ++- docker-compose.yml.example | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml.example diff --git a/README.md b/README.md index b6c2ad6..cdfe072 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@ This Bot was created with the intention to be used on my own server. ## docker + Create a docker image with tag 'latest': `docker build . -t aquabot` -+ In the correct path, create a docker-compose.yml, the required env vars are found in 'aquabot.py' ++ Copy `docker-compose.yml.example` to `docker-compose.yml` ++ Edit the required environment variables (Found in `aquabot.py`) + Start the bot: `docker-compose up -d` ## Requirements diff --git a/docker-compose.yml.example b/docker-compose.yml.example new file mode 100644 index 0000000..bf1e02d --- /dev/null +++ b/docker-compose.yml.example @@ -0,0 +1,7 @@ +version: '3' + +services: + aquabot: + image: aquabot:latest + environment: + restart: always \ No newline at end of file