mirror of
https://github.com/PAPAMICA/docker-compose-collection.git
synced 2026-01-18 16:27:25 +01:00
48 lines
1.5 KiB
YAML
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 |