|
|
|
|
@ -9,13 +9,11 @@ services:
@@ -9,13 +9,11 @@ services:
|
|
|
|
|
SERVER_NAME: ${SERVER_NAME:-localhost}, php:80 |
|
|
|
|
MERCURE_PUBLISHER_JWT_ALG: ${MERCURE_PUBLISHER_JWT_ALG:-HS256} |
|
|
|
|
MERCURE_SUBSCRIBER_JWT_ALG: ${MERCURE_SUBSCRIBER_JWT_ALG:-HS256} |
|
|
|
|
# Removed overrides for JWT keys to use values from .env |
|
|
|
|
# Run "composer require symfony/orm-pack" to install and configure Doctrine ORM |
|
|
|
|
DATABASE_URL: postgresql://${POSTGRES_USER:-app}:${POSTGRES_PASSWORD:-!ChangeMe!}@database:5432/${POSTGRES_DB:-app}?serverVersion=${POSTGRES_VERSION:-17}&charset=${POSTGRES_CHARSET:-utf8} |
|
|
|
|
# Run "composer require symfony/mercure-bundle" to install and configure the Mercure integration |
|
|
|
|
MERCURE_URL: ${MERCURE_URL:-http://php/.well-known/mercure} |
|
|
|
|
MERCURE_PUBLIC_URL: ${MERCURE_PUBLIC_URL:-https://${SERVER_NAME:-localhost}/.well-known/mercure} |
|
|
|
|
MERCURE_JWT_SECRET: ${MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!} |
|
|
|
|
MERCURE_PUBLISHER_JWT_KEY: ${MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!} |
|
|
|
|
MERCURE_SUBSCRIBER_JWT_KEY: ${MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!} |
|
|
|
|
# Nostr relay configuration |
|
|
|
|
NOSTR_DEFAULT_RELAY: ${NOSTR_DEFAULT_RELAY:-} |
|
|
|
|
volumes: |
|
|
|
|
@ -36,8 +34,6 @@ services:
@@ -36,8 +34,6 @@ services:
|
|
|
|
|
protocol: udp |
|
|
|
|
|
|
|
|
|
# Mercure is installed as a Caddy module, prevent the Flex recipe from installing another service |
|
|
|
|
###> symfony/mercure-bundle ### |
|
|
|
|
###< symfony/mercure-bundle ### |
|
|
|
|
|
|
|
|
|
###> doctrine/doctrine-bundle ### |
|
|
|
|
database: |
|
|
|
|
@ -129,11 +125,33 @@ services:
@@ -129,11 +125,33 @@ services:
|
|
|
|
|
- "7777:7777" # Expose for local testing (ws://localhost:7777) |
|
|
|
|
###< strfry relay ### |
|
|
|
|
|
|
|
|
|
###> symfony/mercure-bundle ### |
|
|
|
|
mercure: |
|
|
|
|
image: dunglas/mercure |
|
|
|
|
restart: unless-stopped |
|
|
|
|
environment: |
|
|
|
|
# Uncomment the following line to disable HTTPS, |
|
|
|
|
#SERVER_NAME: ':80' |
|
|
|
|
MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!' |
|
|
|
|
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!' |
|
|
|
|
# Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive |
|
|
|
|
MERCURE_EXTRA_DIRECTIVES: | |
|
|
|
|
cors_origins http://127.0.0.1:8000 |
|
|
|
|
# Comment the following line to disable the development mode |
|
|
|
|
command: /usr/bin/caddy run --config /etc/caddy/dev.Caddyfile |
|
|
|
|
healthcheck: |
|
|
|
|
test: ["CMD", "curl", "-f", "https://localhost/healthz"] |
|
|
|
|
timeout: 5s |
|
|
|
|
retries: 5 |
|
|
|
|
start_period: 60s |
|
|
|
|
volumes: |
|
|
|
|
- mercure_data:/data |
|
|
|
|
- mercure_config:/config |
|
|
|
|
###< symfony/mercure-bundle ### |
|
|
|
|
|
|
|
|
|
volumes: |
|
|
|
|
caddy_data: |
|
|
|
|
caddy_config: |
|
|
|
|
###> symfony/mercure-bundle ### |
|
|
|
|
###< symfony/mercure-bundle ### |
|
|
|
|
|
|
|
|
|
###> doctrine/doctrine-bundle ### |
|
|
|
|
database_data: |
|
|
|
|
@ -143,3 +161,8 @@ volumes:
@@ -143,3 +161,8 @@ volumes:
|
|
|
|
|
strfry_data: |
|
|
|
|
###< strfry relay ### |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###> symfony/mercure-bundle ### |
|
|
|
|
mercure_data: |
|
|
|
|
mercure_config: |
|
|
|
|
###< symfony/mercure-bundle ### |
|
|
|
|
|