2023-04-04 21:06:11 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
podfetch:
|
|
|
|
container_name: podfetch
|
2023-10-29 19:43:17 +00:00
|
|
|
image: samuel19982/podfetch:latest
|
2023-04-04 21:06:11 +00:00
|
|
|
ports:
|
|
|
|
- ${APP_PORT}:8000
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/podfetch-db:/app/db
|
|
|
|
- ${ROOT_FOLDER_HOST}/media/data/podcasts:/app/podcasts
|
|
|
|
environment:
|
|
|
|
- BASIC_AUTH=true
|
|
|
|
- USERNAME=${PODFETCH_USERNAME}
|
|
|
|
- PASSWORD=${PODFETCH_PASSWORD}
|
|
|
|
- POLLING_INTERVAL=60
|
|
|
|
- SERVER_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}
|
|
|
|
- PODINDEX_API_KEY="${PODFETCH_PODINDEX_API_KEY}"
|
|
|
|
- PODINDEX_API_SECRET="${PODFETCH_PODINDEX_API_SECRET}"
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
labels:
|
2023-06-18 16:02:29 +00:00
|
|
|
# Main
|
|
|
|
traefik.enable: true
|
|
|
|
traefik.http.middlewares.podfetch-web-redirect.redirectscheme.scheme: https
|
|
|
|
traefik.http.services.podfetch.loadbalancer.server.port: 8000
|
|
|
|
# Web
|
|
|
|
traefik.http.routers.podfetch-insecure.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.podfetch-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.podfetch-insecure.service: podfetch
|
|
|
|
traefik.http.routers.podfetch-insecure.middlewares: podfetch-web-redirect
|
|
|
|
# Websecure
|
2023-04-04 21:06:11 +00:00
|
|
|
traefik.http.routers.podfetch.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.podfetch.entrypoints: websecure
|
|
|
|
traefik.http.routers.podfetch.service: podfetch
|
|
|
|
traefik.http.routers.podfetch.tls.certresolver: myresolver
|
2023-06-18 16:02:29 +00:00
|
|
|
# Local domain
|
|
|
|
traefik.http.routers.podfetch-local-insecure.rule: Host(`podfetch.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.podfetch-local-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.podfetch-local-insecure.service: podfetch
|
|
|
|
traefik.http.routers.podfetch-local-insecure.middlewares: podfetch-web-redirect
|
|
|
|
# Local domain secure
|
|
|
|
traefik.http.routers.podfetch-local.rule: Host(`podfetch.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.podfetch-local.entrypoints: websecure
|
|
|
|
traefik.http.routers.podfetch-local.service: podfetch
|
|
|
|
traefik.http.routers.podfetch-local.tls: true
|