60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
version: '3.4'
|
|
|
|
services:
|
|
podcastgenerator:
|
|
image: vonproteus/podcast-generator
|
|
volumes:
|
|
- app_data:/app/PodcastGenerator/appdata
|
|
networks:
|
|
- internal
|
|
- external
|
|
- traefik-net
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 5s
|
|
labels:
|
|
traefik.enable: "true"
|
|
traefik.frontend.rule: "Host:${HOST}"
|
|
traefik.port: 80
|
|
traefik.frontend.auth.basic.users: "${BASICAUTHUSERS}"
|
|
traefik.docker.network: traefik-net
|
|
traefik.frontend.headers.STSSeconds: 63072000
|
|
traefik.frontend.headers.STSIncludeSubdomains: "true"
|
|
traefik.frontend.headers.STSPreload: "true"
|
|
yt2p:
|
|
image: vonproteus/youtube-to-podcast
|
|
environment:
|
|
YTURL: $YTURL
|
|
PGREGENERATERSSURL: "http://podcastgenerator/pg-cron.php?key=${REGENERATERSSKEY}"
|
|
HOST: ${HOST}
|
|
volumes:
|
|
- app_data:/data
|
|
networks:
|
|
- external
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: any
|
|
delay: 21h
|
|
|
|
volumes:
|
|
app_data:
|
|
|
|
networks:
|
|
external:
|
|
internal:
|
|
driver: overlay
|
|
internal: true
|
|
traefik-net:
|
|
external: true
|
|
|
|
### Environment variables
|
|
# htpasswd -nb user qwe321
|
|
# HOST
|
|
# BASICAUTHUSERS user:$apr1$UgzGZ8JC$3XqsN3KQ6qz9hBZylFsb5/
|
|
# YTURL
|
|
# REGENERATERSSKEY |