-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebdav.yml
50 lines (47 loc) · 1.58 KB
/
webdav.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
# Docker-compose mis à disposition par Kevin Allioli
# Date de mise à jour : 02/04/2021
# Variables d'environnement à déclarer :
# - SERVICE : nom du service (exemple : jdownloader)
# - PUID : uid de l'utilisateur système (exemple : 1001)
# - GUID : gid du groupe système (exemple : 1001)
# - CONF_DATA_LOCATION : localisation des données de configuration (exemple /apps/"service")
# - DATA_LOCATION: localisation des téléchargement (exemple /apps/"service")
# - NDD : nom de domaine de l'application
# - NETWORK_APP : nom du réseau applicatif
# Fonctionne avec Portainer
version: '2'
services:
webdav:
image: linitio/nginx-webdav
container_name: $SERVICE
volumes:
- $CONF_DATA_LOCATION/sites-enabled:/etc/nginx/sites-enabled
- $CONF_DATA_LOCATION/security:/etc/nginx/security/
- $CONF_DATA_LOCATION/log:/var/log/nginx
- $DATA_LOCATION:/srv/data
environment:
- PUID=$PUID
- PGID=$GUID
healthcheck:
test: grep -q "nginx" /proc/*/status || exit 1
interval: 1m
timeout: 30s
retries: 3
logging:
driver: loki
options:
loki-url: "$URL_LOKI"
loki-external-labels: service={{.Name}}
labels:
- "traefik.enable=true"
- "traefik.http.routers.$SERVICE.entrypoints=https"
- "traefik.http.routers.$SERVICE.rule=Host(`$NDD`)"
- "traefik.http.services.$SERVICE.loadbalancer.server.port=80"
- "traefik.docker.network=$NETWORK_APP"
restart: unless-stopped
networks:
- default
networks:
default:
external:
name: $NETWORK_APP