-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
31 lines (29 loc) · 791 Bytes
/
Copy pathcompose.yaml
File metadata and controls
31 lines (29 loc) · 791 Bytes
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
services:
mercure:
image: dunglas/mercure:v0.24.2
restart: unless-stopped
environment:
SERVER_NAME: ":80"
MERCURE_PUBLISHER_JWT_KEY: "development-publisher-key-change-before-production"
MERCURE_SUBSCRIBER_JWT_KEY: "development-subscriber-key-change-before-production"
MERCURE_EXTRA_DIRECTIVES: |
cors_origins http://localhost:8080
heartbeat 1s
ports:
- "3000:80"
volumes:
- mercure_data:/data
- mercure_config:/config
redis:
image: redis:7.4-alpine
command: ["redis-server", "--save", "", "--appendonly", "no"]
ports:
- "16379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 1s
timeout: 1s
retries: 10
volumes:
mercure_data:
mercure_config: