add networking

This commit is contained in:
Oliver 2023-11-03 20:07:55 +00:00
parent 5e53aacaae
commit d674867968

View File

@ -2,7 +2,7 @@ version: '3.1'
name: ${REPO_NAME}
services:
bot:
container_name: discord_bot
container_name: ${REPO_NAME}_bot
build: ${REPO_HTTPS_URL}
restart: always
environment:
@ -10,9 +10,21 @@ services:
DISCORD_INTENTS: $${DISCORD_INTENTS}
DISCORD_TOKEN: $${DISCORD_TOKEN}
DISCORD_ID: $${DISCORD_ID}
networks:
- external
- internal
redis:
container_name: redis_db
container_name: ${REPO_NAME}_redis
image: redis
restart: always
ports:
- 6379:6379
networks:
- internal
networks:
internal:
driver: bridge
internal: true
external:
driver: bridge