diff --git a/docker-compose-deploy.yml b/docker-compose-deploy.yml index f45ff4d..c0c7fa2 100644 --- a/docker-compose-deploy.yml +++ b/docker-compose-deploy.yml @@ -39,9 +39,32 @@ services: - ogcore-network image: opengnsys/ogcore-php:static + mercure: + image: dunglas/mercure + restart: unless-stopped + container_name: ogcore-mercure + environment: + # Uncomment the following line to disable HTTPS, + SERVER_NAME: ':3000' + MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!' + MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!' + MERCURE_EXTRA_DIRECTIVES: | + cors_origins * + # Comment the following line to disable the development mode + command: /usr/bin/caddy run --config /etc/caddy/dev.Caddyfile + ports: + - "3000:3000" + volumes: + - mercure_data:/data + - mercure_config:/config + networks: + - ogcore-network + volumes: database_data: ogpublic: + mercure_data: + mercure_config: networks: