From d5a17e0a3ffc0dd818cff689cf3325dfa8786d1d Mon Sep 17 00:00:00 2001 From: Michel Date: Thu, 7 Nov 2024 22:50:05 +0100 Subject: [PATCH] Adds proxy generation as own container --- deploy/docker-compose.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index 7bf6dbb..2bfd0e3 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -11,13 +11,21 @@ services: - caddy_data:/data depends_on: - php-fpm + php-create-proxies: + container_name: gamesshop_php_generateproxies + image: php-cli + volumes: + - ./..:/app + - php_tmp:/tmp + command: sh -c "php /app/src/php/bin/doctrine.php orm:generate-proxies" php-fpm: container_name: gamesshop_php build: . volumes: - ./..:/app - entrypoint: sh -c "php /app/src/php/bin/doctrine.php orm:generate-proxies && docker-php-entrypoint" + - php_tmp:/tmp volumes: caddy_data: - caddy_config: \ No newline at end of file + caddy_config: + php_tmp: \ No newline at end of file -- 2.45.2