version: '3' services: database: image: postgres:${POSTGRES_VERSION:-13}-alpine environment: POSTGRES_DB: ${POSTGRES_DB:-app} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe} POSTGRES_USER: ${POSTGRES_USER:-symfony} ports: - 5432:5432 volumes: - db-data:/var/lib/postgresql/data:rw mailer: image: schickling/mailcatcher ports: - 1025:1025 - 1080:1080 mercure: image: dunglas/mercure restart: unless-stopped ports: - "80" environment: SERVER_NAME: ':80' MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!' MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!' MERCURE_EXTRA_DIRECTIVES: | cors_origins https://127.0.0.1:8000 # Comment the following line to disable the development mode command: /usr/bin/caddy run -config /etc/caddy/Caddyfile.dev volumes: - mercure_data:/data - mercure_config:/config volumes: db-data: mercure_data: mercure_config: