Docker/Audio/Audiobookshelf/docker-compose-traefik.yml
2024-04-21 17:26:57 +02:00

32 lines
1.1 KiB
YAML

#### NETWORKS
networks:
docker-traefik_front_network:
external: true
back_network:
driver: bridge
attachable: true
#### SERVICES
services:
audiobookshelf:
container_name: audiobookshelf-app
hostname: audiobookshelf-app
image: ghcr.io/advplyr/audiobookshelf:latest
networks:
- docker-traefik_front_network
volumes:
- ./audiobooks:/audiobooks
labels:
- "traefik.enable=true"
- "traefik.docker.network=docker-traefik_front_network"
## HTTP
- "traefik.http.routers.audiobookshelf-http.rule=Host(`audiobookshelf.10.0.4.29.traefik.me`)"
- "traefik.http.routers.audiobookshelf-http.entrypoints=http"
## HTTPS
- "traefik.http.routers.audiobookshelf-https.rule=Host(`audiobookshelf.10.0.4.29.traefik.me`)"
- "traefik.http.routers.audiobookshelf-https.entrypoints=https"
- "traefik.http.routers.audiobookshelf-https.tls=true"
- "traefik.http.routers.audiobookshelf.service=audiobookshelf-service"
## Middleware
## Service
- "traefik.http.services.audiobookshelf-service.loadbalancer.server.port=3000"