chore: isolate dev services from production ports

This commit is contained in:
hajimi
2026-08-02 16:37:17 +08:00
parent 9b908ae396
commit 71cfd68859
3 changed files with 9 additions and 4 deletions
+4 -2
View File
@@ -15,6 +15,7 @@ services:
volumes:
- ../server:/likeadmin_php/server
- ./.env.server:/likeadmin_php/server/.env:ro
- ./config/php/php-fpm.dev.conf:/usr/local/etc/php-fpm.d/zz-dev-fpm.conf:ro
scheduler:
<<: *php-image
@@ -26,6 +27,7 @@ services:
volumes:
- ../server:/likeadmin_php/server
- ./.env.server:/likeadmin_php/server/.env:ro
- ./config/php/php-fpm.dev.conf:/usr/local/etc/php-fpm.d/zz-dev-fpm.conf:ro
crawler:
container_name: sport-era-crawler
@@ -72,7 +74,7 @@ services:
sh -c "if [ ! -d node_modules/vite ]; then npm install --package-lock=false; fi;
npm run dev"
ports:
- "5176:5176"
- "5186:5176"
volumes:
- ../admin:/app
- admin-node-modules:/app/node_modules
@@ -89,7 +91,7 @@ services:
sh -c "if [ ! -x node_modules/.bin/uni ]; then npm install --legacy-peer-deps --package-lock=false; fi;
npm run dev:h5 -- --host 0.0.0.0"
ports:
- "5177:5177"
- "5187:5177"
volumes:
- ../uniapp:/app
- uniapp-node-modules:/app/node_modules