fix(deploy): attach compose services to dokploy-network

Dokploy's managed Postgres runs as its own service on the shared
`dokploy-network`. The compose stack only had its own default network, so
web and worker could not resolve the database host — `prisma migrate deploy`
failed on boot and both containers crash-looped.

Join both services to `dokploy-network` while keeping `default` for
web<->worker traffic.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Leon Serfaty
2026-09-07 11:52:14 -04:00
co-authored by Claude Opus 5
parent 3e9ba07175
commit 0c6b6c5cad
+13
View File
@@ -27,6 +27,11 @@ services:
UMAMI_WEBSITE_ID: ${UMAMI_WEBSITE_ID:-}
volumes:
- storage:/app/storage
# `default` keeps web<->worker talking; `dokploy-network` is where Dokploy's
# managed Postgres service lives, so Prisma can resolve the DB host.
networks:
- default
- dokploy-network
expose:
- "3000"
# Dokploy attaches the Traefik router (domain + SSL) to this service on port 3000.
@@ -39,8 +44,16 @@ services:
STORAGE_DIR: /app/storage
volumes:
- storage:/app/storage
networks:
- default
- dokploy-network
depends_on:
- web
volumes:
storage:
# Created by Dokploy; every managed service (incl. Postgres) is attached to it.
networks:
dokploy-network:
external: true