ytdl-sub/docker/testing/docker-compose.yml
Ross Patterson 7a54cd1f93
build(compose): Type safe and consistent YAML
- Avoid YAML type conversion/casting magic:

  https://www.rpatterson.net/blog/docker-gotchas/#yaml-needs-some-zen
  https://sidneyliebrand.medium.com/the-greatnesses-and-gotchas-of-yaml-5e3377ef0c55

- Prefer mappings over `"...=..."` strings such as for `environment:`:

  YAML mappings better describe the declaritive intention of those parts of the
  configuration. Use mappings where order doesn't matter and YAML arrays/lists make
  confuguration less readable.
2025-08-27 09:52:31 -07:00

39 lines
1,005 B
YAML

services:
ytdl-sub-gui:
image: "ytdl-sub-gui:local"
container_name: "ytdl-sub-gui"
environment:
PUID: "1000"
PGID: "1000"
TZ: "America/Los_Angeles"
CRON_SCHEDULE: '"*/1 * * * *"'
CRON_RUN_ON_START: "true"
volumes:
- "./volumes/ytdl-sub-gui/:/config/"
ports:
- "8443:8443"
restart: "unless-stopped"
ytdl-sub:
image: "ytdl-sub:local"
container_name: "ytdl-sub"
environment:
PUID: "1000"
PGID: "1000"
TZ: "America/Los_Angeles"
CRON_SCHEDULE: '"*/1 * * * *"'
CRON_RUN_ON_START: "true"
volumes:
- "./volumes/ytdl-sub/:/config/"
restart: "unless-stopped"
ytdl-sub-ubuntu:
image: "ytdl-sub-ubuntu:local"
container_name: "ytdl-sub-ubuntu"
environment:
PUID: "1000"
PGID: "1000"
TZ: "America/Los_Angeles"
CRON_SCHEDULE: '"*/1 * * * *"'
CRON_RUN_ON_START: "true"
volumes:
- "./volumes/ytdl-sub/:/config/"
restart: "unless-stopped"