services: postgres: image: postgis/postgis:16-3.4 restart: unless-stopped environment: POSTGRES_DB: points_of_interest POSTGRES_USER: symfony POSTGRES_PASSWORD: symfony healthcheck: test: ["CMD-SHELL", "pg_isready -U symfony -d points_of_interest"] interval: 10s timeout: 5s retries: 5 volumes: - postgres_data:/var/lib/postgresql/data adminer: image: adminer:latest depends_on: - postgres environment: APP_ENV: dev ADMINER_DESIGN: pepa-linha ADMINER_DEFAULT_SERVER: postgres ports: - "8082:8080" ###> symfony/mercure-bundle ### mercure: image: dunglas/mercure restart: unless-stopped environment: 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 http://localhost:8000 http://localhost:5173 http://127.0.0.1:5173 # 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: postgres_data: ###> symfony/mercure-bundle ### mercure_data: mercure_config: ###< symfony/mercure-bundle ###