discord-bot-template/docker-compose.yaml
2023-11-03 20:07:55 +00:00

31 lines
597 B
YAML

version: '3.1'
name: ${REPO_NAME}
services:
bot:
container_name: ${REPO_NAME}_bot
build: ${REPO_HTTPS_URL}
restart: always
environment:
# These will read from the .env file
DISCORD_INTENTS: $${DISCORD_INTENTS}
DISCORD_TOKEN: $${DISCORD_TOKEN}
DISCORD_ID: $${DISCORD_ID}
networks:
- external
- internal
redis:
container_name: ${REPO_NAME}_redis
image: redis
restart: always
ports:
- 6379:6379
networks:
- internal
networks:
internal:
driver: bridge
internal: true
external:
driver: bridge