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:
parent
0b174e38f5
commit
40007fe19a
@ -5,11 +5,8 @@ services:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: yetanother
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./packages/db/prisma:/docker-entrypoint-initdb.d
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 5s
|
||||
@ -18,8 +15,6 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
healthcheck:
|
||||
@ -30,8 +25,6 @@ services:
|
||||
|
||||
meilisearch:
|
||||
image: getmeili/meilisearch:v1.12
|
||||
ports:
|
||||
- "7700:7700"
|
||||
environment:
|
||||
MEILI_MASTER_KEY: dev-master-key
|
||||
volumes:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user