-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
50 lines (47 loc) · 1.08 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
40
41
42
43
44
45
46
47
48
49
50
services:
tailscale:
build: ./tailscale
env_file: ./tailscale/.env
volumes:
- ./tailscale/state/misskey:/var/lib/tailscale
command:
- /opt/bin/run.sh
devices:
- /dev/net/tun:/dev/net/tun
misskey:
container_name: misskey
build: ./misskey
restart: always
depends_on:
tailscale:
condition: service_started
db:
condition: service_healthy
redis:
condition: service_healthy
network_mode: "service:tailscale"
volumes:
- ./misskey/files:/misskey/files
- ./misskey/.config:/misskey/.config:ro
redis:
container_name: redis
restart: always
image: redis:7-alpine
volumes:
- ./redis:/data
healthcheck:
test: "redis-cli ping"
interval: 5s
retries: 20
db:
container_name: db
restart: always
image: postgres:15-alpine
env_file:
- ./misskey/.config/docker.env
volumes:
- ./misskey/db:/var/lib/postgresql/data
healthcheck:
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
interval: 5s
retries: 20