fix: join caddy external network, use expose instead of ports

Caddy reaches FPM via Docker network (pp-planer-app:9000) instead of
host port mapping. Removed broken app-public named volume.
This commit is contained in:
Thorsten Bus 2026-03-30 18:58:23 +02:00
parent 6c7c6c076d
commit dc536dd078

View file

@ -28,12 +28,11 @@ services:
- ./:/app
- /app/node_modules
- /app/vendor
ports:
- "9000:9000"
expose:
- "9000"
networks:
- pp-planer-network
depends_on:
- node
- caddy
- internal
node:
image: node:20-alpine
@ -45,14 +44,13 @@ services:
volumes:
- ./:/app
- /app/node_modules
ports:
- "5173:5173"
expose:
- "5173"
networks:
- pp-planer-network
- caddy
- internal
command: sh -c "npm install && npm run dev"
# Optional: SQLite database service (for reference, SQLite runs in-process)
# For MySQL, uncomment and configure:
# mysql:
# image: mysql:8.0
# container_name: pp-planer-mysql
@ -64,14 +62,11 @@ services:
# MYSQL_USER: ${DB_USERNAME}
# volumes:
# - mysql_data:/var/lib/mysql
# ports:
# - "3306:3306"
# networks:
# - pp-planer-network
# - internal
networks:
pp-planer-network:
caddy:
external: true
internal:
driver: bridge
# volumes:
# mysql_data:
# driver: local