mirror of
https://github.com/PAPAMICA/docker-compose-collection.git
synced 2026-03-18 21:30:41 +01:00
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
# Docker-compose mis à disposition par Mickael "PAPAMICA" Asseline
|
|
# Date de mise à jour : 27/10/2020
|
|
|
|
# Variables d'environnement à déclarer :
|
|
# - SERVICE : nom du service (exemple : plex)
|
|
# - DATA_LOCATION : localisation des données (exemple /apps/"service")
|
|
# - URL_LOKI : lien du serveur loki (exemple : ndd/loki/api/v1/push)
|
|
# - NDD : lien du nom de domaine (exemple : papamica.fr)
|
|
|
|
# Fonctionne avec Portainer
|
|
version: "2"
|
|
services:
|
|
sinusbot:
|
|
image: sinusbot/docker:latest
|
|
container_name: $SERVICE
|
|
restart: always
|
|
volumes:
|
|
- $DATA_LOCATION/scripts:/opt/sinusbot/scripts
|
|
- $DATA_LOCATION/data:/opt/sinusbot/data
|
|
# - $DATA_LOCATION/config:/jts3servermod
|
|
# ports:
|
|
# - 8087:8087
|
|
|
|
#Facultatif
|
|
networks:
|
|
- proxy
|
|
logging:
|
|
driver: loki
|
|
options:
|
|
loki-url: "$URL_LOKI"
|
|
loki-external-labels: service={{.Name}}
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.$SERVICE.entrypoints=http"
|
|
- "traefik.http.routers.$SERVICE.rule=Host(`$SERVICE.$NDD`)"
|
|
- "traefik.http.middlewares.$SERVICE-https-redirect.redirectscheme.scheme=https"
|
|
- "traefik.http.routers.$SERVICE.middlewares=$SERVICE-https-redirect"
|
|
- "traefik.http.routers.$SERVICE-secure.entrypoints=https"
|
|
- "traefik.http.routers.$SERVICE-secure.rule=Host(`$SERVICE.$NDD`)"
|
|
- "traefik.http.routers.$SERVICE-secure.tls=true"
|
|
- "traefik.http.routers.$SERVICE-secure.tls.certresolver=http"
|
|
- "traefik.http.services.$SERVICE-secure.loadbalancer.server.port=8087"
|
|
- "traefik.docker.network=proxy"
|
|
|
|
|
|
networks:
|
|
proxy:
|
|
external:
|
|
name: proxy
|
|
|