Change to ytdl-stub-gui image
This commit is contained in:
1 parent
e2a17c795a
commit
1e49a57305
1 file changed
+7
-44
+7
-44
@@ -1,61 +1,24 @@
|
||||
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 &&
|
||||
chown -R 911:911 /config"
|
||||
volumes:
|
||||
- /var/lib/docker/volumes/hawser/stacks/podcasts/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
|
||||
image: ghcr.io/jmbannon/ytdl-sub-gui:latest
|
||||
container_name: ytdl-sub
|
||||
depends_on:
|
||||
init-configuration:
|
||||
condition: service_completed_successfully
|
||||
restart: unless-stopped
|
||||
user: "${PUID}:${PGID}"
|
||||
environment:
|
||||
TZ: ${TZ}
|
||||
CRON_SCHEDULE: "0 */6 * * *"
|
||||
CRON_RUN_ON_START: "true"
|
||||
UPDATE_YT_DLP_ON_START: stable
|
||||
ports:
|
||||
- "8443:8443"
|
||||
volumes:
|
||||
- /var/lib/docker/volumes/ytdl-sub/config/ytdl-sub:/config
|
||||
- /var/lib/docker/volumes/ytdl-sub/config:/config
|
||||
- /network/dd6_datas/Podcasts:/media/podcasts
|
||||
command:
|
||||
- /config/subscriptions.yaml
|
||||
networks:
|
||||
- podcastsnet
|
||||
|
||||
cron:
|
||||
image: alpine:latest
|
||||
container_name: podcast-cron
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
init-configuration:
|
||||
condition: service_completed_successfully
|
||||
environment:
|
||||
TZ: ${TZ}
|
||||
user: "${PUID}:${PGID}"
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user