chore: isolate dev services from production ports
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
server {
|
||||
listen 8000;
|
||||
listen 8100;
|
||||
server_name _;
|
||||
root /likeadmin_php/server/public;
|
||||
index index.html index.htm index.php;
|
||||
@@ -17,7 +17,7 @@ server {
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_pass 127.0.0.1:9100;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME /likeadmin_php/server/public$fastcgi_script_name;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[www]
|
||||
listen = 127.0.0.1:9100
|
||||
listen.allowed_clients = 127.0.0.1
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user