diff --git a/docker-compose.yml b/docker-compose.yml index 2b97749..5319b8e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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