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)
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:
parent
3371243a00
commit
03e3899541
1 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue