stanley-king 1 年之前
父節點
當前提交
087a32e91a

+ 3 - 19
docker/compose/homecuda/acc/docker-compose.yml

@@ -1,10 +1,10 @@
 version: "3.7"
 
 services:
-  nginxsrv:
+  nginx:
     image: nginx:alpine
     ports:
-      - 80:80
+      - 8100:80
     volumes:
       - ../../../../:/var/www/html
       - ../conf/etc/localtime:/etc/localtime:ro
@@ -16,10 +16,8 @@ services:
     extra_hosts:
       - "docker.hostip:172.17.0.1"
 
-  mobilesrv:
+  mobile:
     image: php-zts:7.3.18
-    ports:
-      - 9100:9100
     volumes:
       - ../../../../:/var/www/html
       - ../conf/etc/localtime:/etc/localtime:ro
@@ -28,18 +26,4 @@ services:
       - /mnt/shoplog:/var/www/html/data/log
       - ../conf/php/mobile-spwan-start:/usr/local/bin/docker-spwan-start
     container_name: "panda-mobile"
-    command: ['docker-spwan-start']
-
-  vapisrv:
-    image: php-zts:7.3.18
-    ports:
-      - 9702:9100
-    volumes:
-      - ../../../../:/var/www/html
-      - ../conf/etc/localtime:/etc/localtime:ro
-      - ../conf/php/php.ini:/usr/local/etc/php/php.ini
-      - /mnt/upload:/var/www/html/data/upload
-      - /mnt/shoplog:/var/www/html/data/log
-      - ../conf/php/vapi-spwan-start:/usr/local/bin/docker-spwan-start
-    container_name: "panda-vapi"
     command: ['docker-spwan-start']

+ 1 - 1
docker/compose/homecuda/conf/nginx/nginx.conf

@@ -90,7 +90,7 @@ http
 
         location ~ /mobile/[/\w]+\.php$ {
             root           $folder_name;
-            fastcgi_pass   docker.hostip:9100;
+            fastcgi_pass   mobile:9000;
             fastcgi_index  index.php;
             fastcgi_param  SCRIPT_FILENAME  $folder_name$fastcgi_script_name;
             fastcgi_param  SIGN $http_sign;

+ 1 - 1
docker/compose/homecuda/conf/php/mobile-spwan-start

@@ -1,6 +1,6 @@
 #!/bin/sh
 set -e
-spawn-fcgi -a 0.0.0.0 -p 9100 -F 1 -f "php /var/www/html/mobile/mobile_run.php"
+spawn-fcgi -a 0.0.0.0 -p 9000 -F 1 -f "php /var/www/html/mobile/mobile_run.php"
 
 time=$(date "+%Y%m%d")