Config: put Redis service in Docker local network (#2223)

old config exposed the Redis server to the internet if the user had not configured a firewall to block port 6379

Signed-off-by: JIBSIL <40243545+JIBSIL@users.noreply.github.com>
This commit was merged in pull request #2223.
This commit is contained in:
JIBSIL
2025-05-09 09:52:56 -04:00
committed by GitHub
parent 3371243a00
commit 03e3899541

View File

@@ -59,6 +59,8 @@ services:
condition: service_healthy
redis:
condition: service_healthy
networks:
- maybe_net
worker:
image: ghcr.io/maybe-finance/maybe:latest
@@ -69,6 +71,8 @@ services:
condition: service_healthy
environment:
<<: *rails_env
networks:
- maybe_net
db:
image: postgres:16
@@ -82,11 +86,11 @@ services:
interval: 5s
timeout: 5s
retries: 5
networks:
- maybe_net
redis:
image: redis:latest
ports:
- 6379:6379
restart: unless-stopped
volumes:
- redis-data:/data
@@ -95,8 +99,14 @@ services:
interval: 5s
timeout: 5s
retries: 5
networks:
- maybe_net
volumes:
app-storage:
postgres-data:
redis-data:
networks:
maybe_net:
driver: bridge