-
Notifications
You must be signed in to change notification settings - Fork 79
/
docker-compose.base.yml
124 lines (114 loc) · 3.37 KB
/
docker-compose.base.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#####################################################
# DO NOT EDIT THIS FILE
#
# Create an .env file instead.
# See https://github.com/lardbit/nefarious#part-1
#####################################################
version: '2.4'
services:
# nefarious base service (to be extended)
nefarious-base:
image: lardbit/nefarious
# nefarious base app service (to be extended)
nefarious-app-base:
extends:
service: nefarious-base
ports:
- "8000:80"
labels:
- com.centurylinklabs.watchtower.enable=true
restart: always
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/}
CONFIG_PATH: /nefarious-db
volumes:
# persistent named volume for sqlite database
- nefarious-db:/nefarious-db
logging:
options:
max-size: 2m
# celery base service (to be extended)
celery-base:
extends:
service: nefarious-base
restart: always
entrypoint: /app/entrypoint-celery.sh
volumes:
- ${HOST_DOWNLOAD_PATH:-/tmp}:/downloads
# persistent named volume for sqlite database
- nefarious-db:/nefarious-db
logging:
options:
max-size: 2m
labels:
- com.centurylinklabs.watchtower.enable=true
# celery worker
celery-worker:
extends:
service: celery-base
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
CELERY_BEAT_SEPARATELY: 1 # run worker and scheduler separately
# celery scheduler (beat)
celery-scheduler:
extends:
service: celery-base
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
CELERY_BEAT: 1 # run celery as scheduler
CELERY_BEAT_SEPARATELY: 1 # run worker and scheduler separately
# jackett base service (to be extended)
jackett-base:
labels:
- com.centurylinklabs.watchtower.enable=true
image: linuxserver/jackett
mem_limit: 200m
restart: always
logging:
options:
max-size: 2m
volumes:
- jackett-config:/config
# transmission base service (to be extended)
transmission-base:
labels:
- com.centurylinklabs.watchtower.enable=true
ports:
- "9091:9091"
- "51413:51413" # peer port
restart: always
environment:
- PUID=${HOST_DOWNLOAD_UID:-1000}
- PGID=${HOST_DOWNLOAD_GID:-1000}
volumes:
- ${HOST_DOWNLOAD_PATH:-/tmp}:/downloads
- ./transmission-settings.json:/config/settings.json:ro
# auto update service (to be extended)
# https://github.com/containrrr/watchtower
watchtower-base:
image: containrrr/watchtower
restart: always
command: --label-enable --cleanup
environment:
- WATCHTOWER_POLL_INTERVAL=3600
logging:
options:
max-size: 2m
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
nefarious-db:
jackett-config: