2022-08-25 22:22:11 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
######## traefik ########
|
|
|
|
traefik:
|
|
|
|
container_name: "traefik"
|
|
|
|
image: traefik:latest
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
- ./traefik.yml:/etc/traefik/traefik.yml
|
|
|
|
- ./file-provider.yml:/etc/traefik/file-provider.yml
|
|
|
|
- acme_data:/etc/traefik/acme
|
|
|
|
networks:
|
|
|
|
- traefik
|
|
|
|
ports:
|
|
|
|
- "80:80" # HTTP
|
|
|
|
- "8081:8080" # Web-GUI
|
|
|
|
- "443:443" # HTTPS
|
|
|
|
- "2222:2222" # SSH
|
|
|
|
environment:
|
2023-04-06 19:53:27 +02:00
|
|
|
TZ: Europe/Berlin
|
2023-03-21 19:00:37 +01:00
|
|
|
labels:
|
2023-04-20 14:50:33 +02:00
|
|
|
com.centurylinklabs.watchtower.enable: true
|
2023-04-20 21:01:58 +02:00
|
|
|
######## traefik ########
|
|
|
|
# https://github.com/tarampampam/error-pages/wiki/Traefik-(docker-compose)
|
|
|
|
error-pages:
|
|
|
|
container_name: "traefik-error-pages"
|
|
|
|
image: tarampampam/error-pages:2
|
|
|
|
environment:
|
|
|
|
TEMPLATE_NAME: ghost
|
|
|
|
labels:
|
|
|
|
com.centurylinklabs.watchtower.enable: true
|
|
|
|
|
|
|
|
traefik.enable: true
|
|
|
|
# use as "fallback" for any NON-registered services (with priority below normal)
|
|
|
|
traefik.http.routers.error-pages-router.rule: HostRegexp(`{host:.+}`)
|
|
|
|
traefik.http.routers.error-pages-router.priority: 10
|
|
|
|
# should say that all of your services work on https
|
|
|
|
traefik.http.routers.error-pages-router.entrypoints: entry_https
|
|
|
|
traefik.http.routers.error-pages-router.middlewares: error-pages-middleware
|
|
|
|
# "errors" middleware settings
|
|
|
|
traefik.http.middlewares.error-pages-middleware.errors.status: 400-599
|
|
|
|
traefik.http.middlewares.error-pages-middleware.errors.service: error-pages-service
|
|
|
|
traefik.http.middlewares.error-pages-middleware.errors.query: /{status}.html
|
|
|
|
# define service properties
|
|
|
|
traefik.http.services.error-pages-service.loadbalancer.server.port: 8080
|
|
|
|
depends_on:
|
|
|
|
- traefik
|
|
|
|
networks:
|
|
|
|
- traefik
|
|
|
|
|
2022-08-25 22:22:11 +02:00
|
|
|
######## Networks ########
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
######## Volumes ########
|
|
|
|
volumes:
|
|
|
|
acme_data:
|