1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-18 20:59:39 +02:00

Config: put Redis service in Docker local network (#2223)
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

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 is contained in:
JIBSIL 2025-05-09 09:52:56 -04:00 committed by GitHub
parent 3371243a00
commit 03e3899541
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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