semi-added docker support. added templating

This commit is contained in:
Oliver Atkinson 2023-11-02 23:33:11 -06:00
parent 1e035859fb
commit bfa00a924f
3 changed files with 21 additions and 0 deletions

2
.gitea/template Normal file
View File

@ -0,0 +1,2 @@
# Use template filling in these files:
docker-compose.yaml

0
Dockerfile Normal file
View File

19
docker-compose.yaml Normal file
View File

@ -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