forked from yukimochi/Activity-Relay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
35 lines (33 loc) · 769 Bytes
/
compose.yml
File metadata and controls
35 lines (33 loc) · 769 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
34
35
services:
redis:
restart: always
image: redis:alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
volumes:
- "./redisdata:/data"
worker:
build: .
image: yukimochi/activity-relay
working_dir: /var/lib/relay
restart: always
command: relay worker
volumes:
- "./actor.pem:/var/lib/relay/actor.pem"
- "./config.yml:/var/lib/relay/config.yml"
deploy:
mode: replicated
replicas: 2
depends_on:
- redis
server:
build: .
image: yukimochi/activity-relay
working_dir: /var/lib/relay
restart: always
command: relay server
volumes:
- "./actor.pem:/var/lib/relay/actor.pem"
- "./config.yml:/var/lib/relay/config.yml"
depends_on:
- redis