fix: use expose instead of ports for Dokploy/Traefik compatibility

Port 3000 conflicts with Dokploy. Traefik routes traffic via
Docker network, so expose is sufficient. Also remove env_file
refs since Dokploy injects env vars directly.
This commit is contained in:
m
2026-03-24 23:43:11 +01:00
parent 83a18a0a85
commit ff9a6f3866

View File

@@ -4,8 +4,6 @@ services:
context: ./backend context: ./backend
expose: expose:
- "8080" - "8080"
env_file:
- .env
environment: environment:
- PORT=8080 - PORT=8080
healthcheck: healthcheck:
@@ -18,13 +16,13 @@ services:
frontend: frontend:
build: build:
context: ./frontend context: ./frontend
ports: expose:
- "3000:3000" - "3000"
depends_on: depends_on:
backend: backend:
condition: service_healthy condition: service_healthy
env_file: environment:
- .env - API_URL=http://backend:8080
healthcheck: healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"] test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"]
interval: 30s interval: 30s