Fix Dokploy Bad Gateway: dokploy-network and expose 8080.

This commit is contained in:
2026-07-29 09:35:08 +03:00
parent 08750add83
commit 57d8ed7388
5 changed files with 31 additions and 13 deletions
+9 -3
View File
@@ -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