forked from lardbit/nefarious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (94 loc) · 2.48 KB
/
docker-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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: '2.4'
services:
# main application
nefarious:
labels:
- com.centurylinklabs.watchtower.enable=true
image: lardbit/nefarious
restart: always
ports:
- "8000:80"
environment:
# https://github.com/kennethreitz/dj-database-url
DATABASE_URL: "sqlite:////nefarious-db/db.sqlite3"
REDIS_HOST: "redis"
NEFARIOUS_USER: ${NEFARIOUS_USER:-admin}
NEFARIOUS_PASS: ${NEFARIOUS_PASS:-admin}
HOST_DOWNLOAD_PATH: ${HOST_DOWNLOAD_PATH:-/tmp/}
volumes:
# persistent named volume for sqlite database
- nefarious-db:/nefarious-db
logging:
options:
max-size: 10m
depends_on:
- redis
- jackett
- celery
# background task queue
celery:
labels:
- com.centurylinklabs.watchtower.enable=true
image: lardbit/nefarious
restart: always
entrypoint: /env/bin/celery -A nefarious worker --concurrency ${NUM_CELERY_WORKERS:-0} --beat --loglevel=INFO
environment:
# https://github.com/kennethreitz/dj-database-url
DATABASE_URL: "sqlite:////nefarious-db/db.sqlite3"
REDIS_HOST: "redis"
HOST_DOWNLOAD_PATH: ${HOST_DOWNLOAD_PATH:-/tmp}
INTERNAL_DOWNLOAD_PATH: /downloads/completed
volumes:
- ${HOST_DOWNLOAD_PATH:-/tmp}:/downloads
# persistent named volume for sqlite database
- nefarious-db:/nefarious-db
logging:
options:
max-size: 10m
depends_on:
- redis
# in-memory database for task queue
redis:
image: redis
restart: always
mem_limit: 200m
# TODO - use "expose" vs "ports" to limit external access when not in development
ports:
- "6379:6379"
# torrent indexer service
jackett:
labels:
- com.centurylinklabs.watchtower.enable=true
image: linuxserver/jackett
mem_limit: 200m
restart: always
ports:
- "9117:9117"
logging:
options:
max-size: 10m
volumes:
- jackett-config:/config
transmission:
image: linuxserver/transmission
volumes:
- ${HOST_DOWNLOAD_PATH:-/tmp}:/downloads
- ./transmission-settings.json:/config/settings.json:ro
ports:
- "9091:9091"
# auto update service
# https://github.com/v2tec/watchtower
watchtower:
image: v2tec/watchtower
restart: always
command: --label-enable --cleanup
logging:
options:
max-size: 10m
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
nefarious-db:
driver: local
jackett-config:
driver: local