Adds proxy generation as own container

This commit is contained in:
Michel 2024-11-07 22:50:05 +01:00
parent fcaf8592e6
commit d5a17e0a3f

View file

@ -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:
php_tmp: