fix: docker-compose port conflicts and bad volume mount

- Remove host port mappings for postgres, redis, meilisearch
  (services connect via internal Docker network)
- Remove prisma schema mount in initdb.d (Postgres only runs
  .sql/.sh files; .prisma does nothing there)
- Keep api:4000 and web:3000:80 exposed for external access
This commit is contained in:
YetAnotherSuite Dev 2026-07-20 23:26:19 +02:00
parent 0b174e38f5
commit 40007fe19a

View File

@ -5,11 +5,8 @@ services:
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
POSTGRES_DB: yetanother POSTGRES_DB: yetanother
ports:
- "5432:5432"
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
- ./packages/db/prisma:/docker-entrypoint-initdb.d
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"] test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s interval: 5s
@ -18,8 +15,6 @@ services:
redis: redis:
image: redis:7-alpine image: redis:7-alpine
ports:
- "6379:6379"
volumes: volumes:
- redis_data:/data - redis_data:/data
healthcheck: healthcheck:
@ -30,8 +25,6 @@ services:
meilisearch: meilisearch:
image: getmeili/meilisearch:v1.12 image: getmeili/meilisearch:v1.12
ports:
- "7700:7700"
environment: environment:
MEILI_MASTER_KEY: dev-master-key MEILI_MASTER_KEY: dev-master-key
volumes: volumes: