forked from mei23/misskey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose_example.yml
50 lines (46 loc) · 1.07 KB
/
docker-compose_example.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
version: "3"
services:
web:
build: .
image: ghcr.io/atsu1125/misskey
restart: always
links:
- mongo
- redis
ports:
- "127.0.0.1:3000:3000"
networks:
- internal_network
- external_network
healthcheck:
test: ["CMD-SHELL", "wget -q --spider --proxy=off localhost:3000/api/meta || exit 1"]
volumes:
- ./files:/misskey/files
- ./.config:/misskey/.config
redis:
restart: always
image: redis:bookworm
networks:
- internal_network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
volumes:
- ./redis:/data
mongo:
restart: always
image: mongo:6-jammy
networks:
- internal_network
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo 127.0.0.1:27017/test --quiet
interval: 30s
timeout: 10s
environment:
MONGO_INITDB_DATABASE: "misskey"
volumes:
- ./.config/mongo_initdb.js:/docker-entrypoint-initdb.d/mongo_initdb.js:ro
- ./mongo_db:/data/db
networks:
internal_network:
internal: true
external_network: