-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (76 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
76 lines (76 loc) · 1.78 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '2.3'
services:
kemono-db:
image: healthcheck/postgres
container_name: kemono-db
environment:
- POSTGRES_USER=nano
- POSTGRES_PASSWORD=shinonome
- POSTGRES_DB=kemonodb
volumes:
- db-data:/var/lib/postgresql/data/
restart: unless-stopped
# ports:
# - 5432:5432
kemono-app:
build: .
container_name: kemono
restart: unless-stopped
depends_on:
kemono-db:
condition: service_healthy
ports:
- 8000:80
env_file:
- .env
environment:
- PGUSER=nano
- PGPASSWORD=shinonome
- PGDATABASE=kemonodb
- PGHOST=kemono-db
- ARCHIVERHOST=kemono-archiver
- ARCHIVERPORT=80
volumes:
- data:/storage
sysctls:
net.core.somaxconn: 40000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 1m
timeout: 2m
retries: 3
start_period: 30s
kemono-archiver:
image: openyiff/kitsune
container_name: kemono-archiver
restart: unless-stopped
depends_on:
kemono-db:
condition: service_healthy
volumes:
- ./kitsune.py:/app/config.py
- data:/storage
sysctls:
net.core.somaxconn: 40000
autoheal:
restart: always
container_name: kemono-autoheal
image: willfarrell/autoheal
environment:
- AUTOHEAL_CONTAINER_LABEL=all
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
# If you need to store your volumes manually, uncomment the "driver_opts" lines and specify your "device" location.
db-data:
driver: local
# driver_opts:
# type: 'none'
# o: 'bind'
# device: "/mnt/slab1/kemono-db"
data:
driver: local
# driver_opts:
# type: 'none'
# o: 'bind'
# device: "/mnt/slab1/kemono"