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:
co-authored by
Claude Opus 5
parent
3e9ba07175
commit
0c6b6c5cad
@@ -27,6 +27,11 @@ services:
|
|||||||
UMAMI_WEBSITE_ID: ${UMAMI_WEBSITE_ID:-}
|
UMAMI_WEBSITE_ID: ${UMAMI_WEBSITE_ID:-}
|
||||||
volumes:
|
volumes:
|
||||||
- storage:/app/storage
|
- 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:
|
expose:
|
||||||
- "3000"
|
- "3000"
|
||||||
# Dokploy attaches the Traefik router (domain + SSL) to this service on port 3000.
|
# Dokploy attaches the Traefik router (domain + SSL) to this service on port 3000.
|
||||||
@@ -39,8 +44,16 @@ services:
|
|||||||
STORAGE_DIR: /app/storage
|
STORAGE_DIR: /app/storage
|
||||||
volumes:
|
volumes:
|
||||||
- storage:/app/storage
|
- storage:/app/storage
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
- dokploy-network
|
||||||
depends_on:
|
depends_on:
|
||||||
- web
|
- web
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
storage:
|
storage:
|
||||||
|
|
||||||
|
# Created by Dokploy; every managed service (incl. Postgres) is attached to it.
|
||||||
|
networks:
|
||||||
|
dokploy-network:
|
||||||
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user