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