-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
39 lines (37 loc) · 1.27 KB
/
compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
services:
app:
build: .
volumes:
- app_data:/app/data
environment:
GIPHY_API_KEY: ${GIPHY_API_KEY}
APP_DOMAIN: ${APP_DOMAIN:-localhost:8000}
MERCURE_HOST: ${MERCURE_HOST:-http://mercure:80/.well-known/mercure}
MERCURE_HOST_FRONTEND: ${MERCURE_HOST_FRONTEND:-http://localhost:3000/.well-known/mercure}
MERCURE_PUBLISHER_JWT_KEY: ${MERCURE_PUBLISHER_JWT_KEY:-!ChangeThisMercureHubJWTSecretKey!}
MERCURE_SUBSCRIBER_JWT_KEY: ${MERCURE_SUBSCRIBER_JWT_KEY:-!ChangeThisMercureHubJWTSecretKey!}
ports:
- "${APP_PORT:-8000}:8000"
mercure:
image: dunglas/mercure
restart: unless-stopped
env_file: .env
environment:
SERVER_NAME: ':80'
MERCURE_PUBLISHER_JWT_KEY: ${MERCURE_PUBLISHER_JWT_KEY:-!ChangeThisMercureHubJWTSecretKey!}
MERCURE_SUBSCRIBER_JWT_KEY: ${MERCURE_SUBSCRIBER_JWT_KEY:-!ChangeThisMercureHubJWTSecretKey!}
MERCURE_EXTRA_DIRECTIVES: "cors_origins ${APP_URL:-http://localhost:8000}"
healthcheck:
test: ["CMD", "curl", "-f", "https://localhost/healthz"]
timeout: 5s
retries: 5
start_period: 60s
ports:
- '${MERCURE_PORT:-3000}:80'
volumes:
- mercure_data:/data
- mercure_config:/config
volumes:
app_data:
mercure_data:
mercure_config: