59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
services:
|
|
init-configuration:
|
|
image: alpine:latest
|
|
container_name: podcast-init-configuration
|
|
user: '0:0'
|
|
environment:
|
|
TZ: ${TZ}
|
|
command: >
|
|
sh -c "cp -fu /sources/config.yaml /config &&
|
|
cp -fu /sources/subscriptions.yaml /config"
|
|
volumes:
|
|
- /var/lib/docker/volumes/hawser/stacks/pdocasts/sources:/sources
|
|
- /var/lib/docker/volumes/ytdl-sub/config/ytdl-sub:/config
|
|
restart: no
|
|
networks:
|
|
- podcastsnet
|
|
|
|
ytdl-sub:
|
|
image: ghcr.io/jmbannon/ytdl-sub:latest
|
|
container_name: ytdl-sub
|
|
depends_on:
|
|
init-configuration:
|
|
condition: service_completed_successfully
|
|
restart: unless-stopped
|
|
user: "${PUID}:${PGID}"
|
|
environment:
|
|
TZ: ${TZ}
|
|
volumes:
|
|
- /var/lib/docker/volumes/ytdl-sub/config/ytdl-sub:/config
|
|
- /network/dd6_datas/Podcasts:/media/podcasts
|
|
command:
|
|
- /config/subscriptions.yaml
|
|
networks:
|
|
- podcastsnet
|
|
|
|
cron:
|
|
image: alpine:latest
|
|
container_name: podcast-cron
|
|
restart: unless-stopped
|
|
environment:
|
|
TZ: ${TZ}
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
command: >
|
|
sh -c "
|
|
apk add --no-cache docker-cli &&
|
|
while true; do
|
|
docker exec ytdl-sub ytdl-sub /config/subscriptions.yaml;
|
|
sleep 21600;
|
|
done "
|
|
networks:
|
|
- podcastsnet
|
|
|
|
networks:
|
|
podcastsnet:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 172.62.0.0/24 |