-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 835 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 835 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
32
33
version: '3.9'
services:
nats:
image: nats:2.9.20
restart: unless-stopped
command: ["--js", "-user", "nats", "-pass", "425751fd-62e2-4b73-9e1b-5a9b0dafc5ad"]
server:
image: ghcr.io/eun/merge-with-label:latest
restart: unless-stopped
command: "server"
ports:
- "8000:8000"
environment:
PORT: 8000
NATS_URL: nats://nats:425751fd-62e2-4b73-9e1b-5a9b0dafc5ad@nats:4222
depends_on:
- nats
worker:
image: ghcr.io/eun/merge-with-label:latest
restart: unless-stopped
command: "worker"
volumes:
- "./private-key.pem:/private-key.pem:ro"
environment:
NATS_URL: nats://nats:425751fd-62e2-4b73-9e1b-5a9b0dafc5ad@nats:4222
APP_ID: <your app id>
PRIVATE_KEY: /private-key.pem
depends_on:
- server
deploy:
replicas: 1