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
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue