2017-04-22 20:29:25 +02:00
|
|
|
services:
|
2019-06-27 12:03:08 +02:00
|
|
|
php:
|
2023-07-31 14:21:06 +02:00
|
|
|
image: ${IMAGES_PREFIX:-}app-php
|
2020-10-19 15:30:43 +02:00
|
|
|
restart: unless-stopped
|
2018-06-23 21:58:44 +02:00
|
|
|
environment:
|
2023-09-20 16:53:05 +02:00
|
|
|
SERVER_NAME: ${SERVER_NAME:-localhost}, php:80
|
|
|
|
MERCURE_PUBLISHER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!}
|
|
|
|
MERCURE_SUBSCRIBER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!}
|
2020-11-24 22:10:43 +01:00
|
|
|
# Run "composer require symfony/orm-pack" to install and configure Doctrine ORM
|
2023-06-13 14:42:53 +02:00
|
|
|
DATABASE_URL: postgresql://${POSTGRES_USER:-app}:${POSTGRES_PASSWORD:-!ChangeMe!}@database:5432/${POSTGRES_DB:-app}?serverVersion=${POSTGRES_VERSION:-15}&charset=${POSTGRES_CHARSET:-utf8}
|
2020-12-02 00:29:12 +01:00
|
|
|
# Run "composer require symfony/mercure-bundle" to install and configure the Mercure integration
|
2023-09-20 16:53:05 +02:00
|
|
|
MERCURE_URL: ${CADDY_MERCURE_URL:-http://php/.well-known/mercure}
|
2024-03-19 10:20:27 +01:00
|
|
|
MERCURE_PUBLIC_URL: ${CADDY_MERCURE_PUBLIC_URL:-https://${SERVER_NAME:-localhost}/.well-known/mercure}
|
2022-09-30 23:33:53 +03:00
|
|
|
MERCURE_JWT_SECRET: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!}
|
2023-09-20 16:53:05 +02:00
|
|
|
# The two next lines can be removed after initial installation
|
|
|
|
SYMFONY_VERSION: ${SYMFONY_VERSION:-}
|
|
|
|
STABILITY: ${STABILITY:-stable}
|
2020-10-19 15:30:43 +02:00
|
|
|
volumes:
|
|
|
|
- caddy_data:/data
|
|
|
|
- caddy_config:/config
|
2021-02-09 10:42:17 +01:00
|
|
|
ports:
|
|
|
|
# HTTP
|
|
|
|
- target: 80
|
2021-12-10 19:00:31 +01:00
|
|
|
published: ${HTTP_PORT:-80}
|
2021-02-09 10:42:17 +01:00
|
|
|
protocol: tcp
|
|
|
|
# HTTPS
|
|
|
|
- target: 443
|
2021-12-10 19:00:31 +01:00
|
|
|
published: ${HTTPS_PORT:-443}
|
2021-02-09 10:42:17 +01:00
|
|
|
protocol: tcp
|
|
|
|
# HTTP/3
|
|
|
|
- target: 443
|
2021-12-10 19:00:31 +01:00
|
|
|
published: ${HTTP3_PORT:-443}
|
2021-02-09 10:42:17 +01:00
|
|
|
protocol: udp
|
2020-10-19 15:30:43 +02:00
|
|
|
|
2021-10-13 22:28:04 +02:00
|
|
|
# Mercure is installed as a Caddy module, prevent the Flex recipe from installing another service
|
|
|
|
###> symfony/mercure-bundle ###
|
|
|
|
###< symfony/mercure-bundle ###
|
|
|
|
|
2020-10-19 15:30:43 +02:00
|
|
|
volumes:
|
|
|
|
caddy_data:
|
|
|
|
caddy_config:
|
2021-10-13 22:28:04 +02:00
|
|
|
###> symfony/mercure-bundle ###
|
|
|
|
###< symfony/mercure-bundle ###
|