First version
This commit is contained in:
1 parent
9a5e16d077
commit
59a5e66f6b
4 files changed
+67
-52
No files matched your search
+33
-12
@@ -1,38 +1,59 @@
|
||||
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/_data/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
|
||||
- ./media/podcasts:/media/podcasts
|
||||
|
||||
- /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
|
||||
"
|
||||
done "
|
||||
networks:
|
||||
- podcastsnet
|
||||
|
||||
networks:
|
||||
podcastsnet:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.62.0.0/24
|
||||
Reference in new issue
Block a user