forked from sakura-tel/milkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose_example.yml
58 lines (53 loc) · 1.23 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
51
52
53
54
55
56
57
58
version: "3"
services:
web:
restart: always
build: .
image: ghcr.io/atsu1125/groundpolis:latest
links:
- db
- redis
# - es
ports:
- "127.0.0.1:3000:3000"
networks:
- internal_network
- external_network
healthcheck:
test: ["CMD-SHELL", "wget -q --spider --proxy=off localhost:3000/info || exit 1"]
volumes:
- ./.config:/misskey/.config
- ./files:/misskey/files
redis:
restart: always
image: redis:alpine
networks:
- internal_network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
volumes:
- ./redis:/data
db:
restart: always
image: postgres:14.1-alpine
networks:
- internal_network
healthcheck:
test: ["CMD", "pg_isready", "-U", "example-misskey-user", "-d", "groundpolis"]
env_file:
- .config/docker.env
volumes:
- ./db:/var/lib/postgresql/data
# es:
# restart: always
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.2
# environment:
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# networks:
# - internal_network
# volumes:
# - ./elasticsearch:/usr/share/elasticsearch/data
networks:
internal_network:
internal: true
external_network: