version: "3.4" services: php: build: context: . target: symfony_php args: SYMFONY_VERSION: ${SYMFONY_VERSION:-} STABILITY: ${STABILITY:-stable} restart: unless-stopped volumes: - php_socket:/var/run/php healthcheck: interval: 10s timeout: 3s retries: 3 start_period: 30s environment: # Run "composer require symfony/orm-pack" to install and configure Doctrine ORM DATABASE_URL: postgresql://${POSTGRES_USER:-symfony}:${POSTGRES_PASSWORD:-ChangeMe}@database:5432/${POSTGRES_DB:-app}?serverVersion=${POSTGRES_VERSION:-13} # Run "composer require symfony/mercure-bundle" to install and configure the Mercure integration MERCURE_PUBLISH_URL: ${MERCURE_URL:-http://caddy/.well-known/mercure} SYMFONY_VERSION: caddy: build: context: . target: symfony_caddy depends_on: - php environment: SERVER_NAME: ${SERVER_NAME:-localhost, caddy:80} MERCURE_PUBLISHER_JWT_KEY: ${MERCURE_PUBLISHER_JWT_KEY:-!ChangeMe!} MERCURE_SUBSCRIBER_JWT_KEY: ${MERCURE_SUBSCRIBER_JWT_KEY:-!ChangeMe!} restart: unless-stopped volumes: - php_socket:/var/run/php - caddy_data:/data - caddy_config:/config ports: # HTTP - target: 80 published: 80 protocol: tcp # HTTPS - target: 443 published: 443 protocol: tcp # HTTP/3 - target: 443 published: 443 protocol: udp volumes: php_socket: caddy_data: caddy_config: