From d674867968aa1ef97e0b84615b4d2f3109e82220 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 3 Nov 2023 20:07:55 +0000 Subject: [PATCH] add networking --- docker-compose.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index c73eb89..5ae1f8c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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