Fix Dokploy Bad Gateway: dokploy-network and expose 8080.
This commit is contained in:
+9
-3
@@ -15,6 +15,7 @@ services:
|
||||
retries: 20
|
||||
networks:
|
||||
- wg
|
||||
- dokploy-network
|
||||
|
||||
app:
|
||||
build: .
|
||||
@@ -22,8 +23,9 @@ services:
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "${APP_PUBLISH_PORT:-8080}:8080"
|
||||
# Dokploy/Traefik routes to this internal port — do NOT publish host ports.
|
||||
expose:
|
||||
- "8080"
|
||||
environment:
|
||||
APP_PORT: "8080"
|
||||
APP_URL: ${APP_URL:-http://localhost:8080}
|
||||
@@ -35,10 +37,11 @@ services:
|
||||
ADMIN_PASSWORD: ${ADMIN_PASSWORD:?set ADMIN_PASSWORD}
|
||||
AUTO_IMPORT_MYSQL: ${AUTO_IMPORT_MYSQL:-true}
|
||||
MYSQL_DUMP_PATH: /data/wg.sql
|
||||
SECURE_COOKIES: ${SECURE_COOKIES:-false}
|
||||
SECURE_COOKIES: ${SECURE_COOKIES:-true}
|
||||
TZ: ${TZ:-UTC}
|
||||
networks:
|
||||
- wg
|
||||
- dokploy-network
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
@@ -46,3 +49,6 @@ volumes:
|
||||
networks:
|
||||
wg:
|
||||
driver: bridge
|
||||
# Required so Traefik (Dokploy) can reach containers.
|
||||
dokploy-network:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user