Files
Quentin JOLY ebd0af91cd Correction des healthchecks + ajout des container_name manquant (#13)
* Correction des healthchecks

* Ajout de container_name
2022-10-18 12:32:27 +02:00

48 lines
1.5 KiB
YAML

# Maintainer: Mickael "PAPAMICA" Asseline
# Update: 2022-05-10
#& type: 3
#& title: Hastebin
#& description: Share your code easily
#& note: Website: <a href='https://hastebin.com/about.md' target='_blank' rel='noopener'>Hastebin.com</a>
#& categories: SelfHosted, PAPAMICA
#& platform: linux
#& logo: https://img.papamica.com/logo/hastebin.png
#% SERVICE: Name of the service (No spaces or points) [hastebin]
#% DATA_LOCATION: Data localization (Example: /apps/service) [/_data/apps]
#% URL: Service URL (Example: service.papamica.fr or service.com)
#% NETWORK: Your Traefik network (Example: proxy) [proxy]
# Work with Portainer
version: "2"
services:
# Hastebin : https://hastebin.com/about.md
hastebin:
image: rlister/hastebin:latest
container_name: $SERVICE
restart: always
environment:
STORAGE_TYPE: file
volumes:
- $DATA_LOCATION/$SERVICE/data:/data
healthcheck:
test: wget -q 'http://localhost:7777'
interval: 1m
timeout: 30s
retries: 3
networks:
- default
labels:
- "autoupdate=monitor" # https://github.com/PAPAMICA/container-updater
- "traefik.enable=true"
- "traefik.http.routers.$SERVICE.entrypoints=https"
- "traefik.http.routers.$SERVICE.rule=Host(`$URL`)"
- "traefik.http.routers.$SERVICE.tls=true"
- "traefik.http.routers.$SERVICE.tls.certresolver=http"
- "traefik.docker.network=$NETWORK"
networks:
default:
external:
name: $NETWORK