mirror of
https://github.com/Viren070/docker-compose-template.git
synced 2025-12-01 23:17:00 +01:00
ec66655997
- move core configuratiion (authelia, traefik) to main .env - move all hostname definitions to main .env - add cloudflare ddns to automatically create DNS records - automatically determine stremio addon hostnames for authelia using predefined hostname environment variables - give all services a profile, including the previously implicit "default" services. Instead provide an explicit "required" profile that contains traefik and authelia. Allowing you to restart a specific profile without including the previous default services and also allowing you to have more control.
26 lines
800 B
YAML
26 lines
800 B
YAML
services:
|
|
mediaflow-proxy:
|
|
image: mhdzumair/mediaflow-proxy
|
|
container_name: mediaflow-proxy
|
|
restart: unless-stopped
|
|
expose:
|
|
- 8888
|
|
env_file:
|
|
- .env
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.mediaflow.rule=Host(`${MEDIAFLOW_PROXY_HOSTNAME?}`)"
|
|
- "traefik.http.routers.mediaflow.entrypoints=websecure"
|
|
- "traefik.http.routers.mediaflow.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.mediaflow.loadbalancer.server.port=8888"
|
|
healthcheck:
|
|
test: python3 -c "import urllib.request; print(urllib.request.urlopen('http://127.0.0.1:8888/health').read().decode())"
|
|
interval: 1m
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 10s
|
|
profiles:
|
|
- mediaflow-proxy
|
|
- stremio
|
|
- all
|