-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjdownloader.yml
41 lines (38 loc) · 1.22 KB
/
jdownloader.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
# Docker-compose mis à disposition par Kevin Allioli
# Date de mise à jour : 14/03/2021
# Variables d'environnement à déclarer :
# - SERVICE : nom du service (exemple : jdownloader)
# - J_UID : uid de l'utilisateur système (exemple : 1001)
# - J_GID : gid du groupe système (exemple : 1001)
# - CONF_DATA_LOCATION : localisation des données de configuration (exemple /apps/"service")
# - DOWNLOADS_DATA_LOCATION: localisation des téléchargement (exemple /apps/"service")
# - NETWORK_FRONT : nom du réseau frontal
# Fonctionne avec Portainer
version: '2'
services:
jdownloader:
image: linitio/jdownloader
container_name: $SERVICE
environment:
- JDOWNLOADER_UID=$J_UID
- JDOWNLOADER_GID=$J_GID
healthcheck:
test: jps -l | grep "JDownloader.jar" >/dev/null || exit 1
interval: 1m
timeout: 30s
retries: 3
logging:
driver: loki
options:
loki-url: "$URL_LOKI"
loki-external-labels: service={{.Name}}
volumes:
- $CONF_DATA_LOCATION:/jdownloader/cfg
- $DOWNLOADS_DATA_LOCATION:/jdownloader/Downloads
restart: unless-stopped
networks:
- default
networks:
default:
external:
name: $NETWORK_FRONT