app-store/apps/komga/docker-compose.yml
Wraithers f59c332c94
Add: Komga app (#3258)
* Create docker-compose.yml

* Create config.json

* Update docker-compose.yml

* Update docker-compose.yml

* Create description.md

* Add logo.jpg

* Update README.md

* Add tipi_main_network to docker-compose.yml

* Update description.md

* refactor(komga): small changes

---------

Co-authored-by: Stavros <steveiliop56@gmail.com>
2024-04-24 12:59:43 +03:00

41 lines
1.6 KiB
YAML

version: "3.9"
services:
komga:
image: ghcr.io/gotson/komga:1.11.0
container_name: komga
volumes:
- ${APP_DATA_DIR}/data/config:/config
- ${APP_DATA_DIR}/data/data:/data
environment:
- TZ=${TZ}
ports:
- ${APP_PORT}:25600
networks:
- tipi_main_network
restart: unless-stopped
labels:
# Main
traefik.enable: true
traefik.http.middlewares.komga-web-redirect.redirectscheme.scheme: https
traefik.http.services.komga.loadbalancer.server.port: 8080
# Web
traefik.http.routers.komga-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.komga-insecure.entrypoints: web
traefik.http.routers.komga-insecure.service: komga
traefik.http.routers.komga-insecure.middlewares: komga-web-redirect
# Websecure
traefik.http.routers.komga.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.komga.entrypoints: websecure
traefik.http.routers.komga.service: komga
traefik.http.routers.komga.tls.certresolver: myresolver
# Local domain
traefik.http.routers.komga-local-insecure.rule: Host(`komga.${LOCAL_DOMAIN}`)
traefik.http.routers.komga-local-insecure.entrypoints: web
traefik.http.routers.komga-local-insecure.service: komga
traefik.http.routers.komga-local-insecure.middlewares: komga-web-redirect
# Local domain secure
traefik.http.routers.komga-local.rule: Host(`komga.${LOCAL_DOMAIN}`)
traefik.http.routers.komga-local.entrypoints: websecure
traefik.http.routers.komga-local.service: komga
traefik.http.routers.komga-local.tls: true