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