feat(cluster): expose db/redis ports for worker-node connectivity
This commit is contained in:
parent
30b4deffc6
commit
00f3f2905f
1 changed files with 4 additions and 1 deletions
|
|
@ -5,6 +5,8 @@ services:
|
|||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
ports:
|
||||
- "${PORT_DB:-5432}:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./services/mam-api/src/db/schema.sql:/docker-entrypoint-initdb.d/001-schema.sql:ro
|
||||
|
|
@ -18,6 +20,8 @@ services:
|
|||
|
||||
queue:
|
||||
image: redis:7-alpine
|
||||
ports:
|
||||
- "${PORT_REDIS:-6379}:6379"
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
networks:
|
||||
|
|
@ -114,7 +118,6 @@ services:
|
|||
networks:
|
||||
- wild-dragon
|
||||
|
||||
|
||||
editor:
|
||||
build: ./services/editor
|
||||
depends_on:
|
||||
|
|
|
|||
Loading…
Reference in a new issue