From bfa00a924f26a2174d1b283b91db8f60487161b9 Mon Sep 17 00:00:00 2001 From: Oliver Atkinson Date: Thu, 2 Nov 2023 23:33:11 -0600 Subject: [PATCH] semi-added docker support. added templating --- .gitea/template | 2 ++ Dockerfile | 0 docker-compose.yaml | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 .gitea/template create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/.gitea/template b/.gitea/template new file mode 100644 index 0000000..d598201 --- /dev/null +++ b/.gitea/template @@ -0,0 +1,2 @@ +# Use template filling in these files: +docker-compose.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..10e47e5 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,19 @@ +version: '3.1' +name: ${REPO_NAME} +services: + bot: + container_name: discord_bot + build: ${REPO_LINK} + restart: always + environment: + # These will read from the .env file + # (They need double $ to escape from the templating (i think)) + DISCORD_INTENTS: $${DISCORD_INTENTS} + DISCORD_TOKEN: $${DISCORD_TOKEN} + DISCORD_ID: $${DISCORD_ID} + redis: + container_name: redis_db + image: redis + restart: always + ports: + - 6379:6379