Fix vendor autoload missing in docker images by adding anonymous volumes and installing composer dependencies for all servers
This commit is contained in:
@@ -36,8 +36,11 @@ services:
|
||||
PHP_VERSION: "${PHP_VERSION:-8.2}"
|
||||
volumes:
|
||||
- ../backend:/var/www/backend
|
||||
- /var/www/backend/vendor
|
||||
- ../payment_server/v2:/var/www/v2
|
||||
- /var/www/v2/vendor
|
||||
- ../loction_server:/var/www/loction_server
|
||||
- /var/www/loction_server/vendor
|
||||
- ./php/opcache.ini:/usr/local/etc/php/conf.d/zz-opcache.ini:ro
|
||||
- ./php/www-pool.conf:/usr/local/etc/php-fpm.d/zz-pool.conf:ro
|
||||
- ./keys:/keys:ro
|
||||
@@ -57,9 +60,10 @@ services:
|
||||
args:
|
||||
PHP_VERSION: "${PHP_VERSION:-8.2}"
|
||||
command: ["php", "driver_socket.php", "start"]
|
||||
working_dir: /app
|
||||
working_dir: /var/www/loction_server
|
||||
volumes:
|
||||
- ../loction_server:/app
|
||||
- ../loction_server:/var/www/loction_server
|
||||
- /var/www/loction_server/vendor
|
||||
- ./keys:/keys:ro
|
||||
env_file: .env
|
||||
ports:
|
||||
@@ -84,9 +88,10 @@ services:
|
||||
args:
|
||||
PHP_VERSION: "${PHP_VERSION:-8.2}"
|
||||
command: ["php", "passenger_socket.php", "start"]
|
||||
working_dir: /app
|
||||
working_dir: /var/www/ride_server
|
||||
volumes:
|
||||
- ../ride_server:/app
|
||||
- ../ride_server:/var/www/ride_server
|
||||
- /var/www/ride_server/vendor
|
||||
- ./keys:/keys:ro
|
||||
env_file: .env
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user