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.
This commit is contained in:
parent
d1e584d505
commit
7a54cd1f93
1 changed files with 28 additions and 28 deletions
|
|
@ -1,39 +1,39 @@
|
||||||
services:
|
services:
|
||||||
ytdl-sub-gui:
|
ytdl-sub-gui:
|
||||||
image: ytdl-sub-gui:local
|
image: "ytdl-sub-gui:local"
|
||||||
container_name: ytdl-sub-gui
|
container_name: "ytdl-sub-gui"
|
||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
PUID: "1000"
|
||||||
- PGID=1000
|
PGID: "1000"
|
||||||
- TZ=America/Los_Angeles
|
TZ: "America/Los_Angeles"
|
||||||
- CRON_SCHEDULE="*/1 * * * *"
|
CRON_SCHEDULE: '"*/1 * * * *"'
|
||||||
- CRON_RUN_ON_START=true
|
CRON_RUN_ON_START: "true"
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/ytdl-sub-gui:/config
|
- "./volumes/ytdl-sub-gui/:/config/"
|
||||||
ports:
|
ports:
|
||||||
- 8443:8443
|
- "8443:8443"
|
||||||
restart: unless-stopped
|
restart: "unless-stopped"
|
||||||
ytdl-sub:
|
ytdl-sub:
|
||||||
image: ytdl-sub:local
|
image: "ytdl-sub:local"
|
||||||
container_name: ytdl-sub
|
container_name: "ytdl-sub"
|
||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
PUID: "1000"
|
||||||
- PGID=1000
|
PGID: "1000"
|
||||||
- TZ=America/Los_Angeles
|
TZ: "America/Los_Angeles"
|
||||||
- CRON_SCHEDULE="*/1 * * * *"
|
CRON_SCHEDULE: '"*/1 * * * *"'
|
||||||
- CRON_RUN_ON_START=true
|
CRON_RUN_ON_START: "true"
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/ytdl-sub:/config
|
- "./volumes/ytdl-sub/:/config/"
|
||||||
restart: unless-stopped
|
restart: "unless-stopped"
|
||||||
ytdl-sub-ubuntu:
|
ytdl-sub-ubuntu:
|
||||||
image: ytdl-sub-ubuntu:local
|
image: "ytdl-sub-ubuntu:local"
|
||||||
container_name: ytdl-sub-ubuntu
|
container_name: "ytdl-sub-ubuntu"
|
||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
PUID: "1000"
|
||||||
- PGID=1000
|
PGID: "1000"
|
||||||
- TZ=America/Los_Angeles
|
TZ: "America/Los_Angeles"
|
||||||
- CRON_SCHEDULE="*/1 * * * *"
|
CRON_SCHEDULE: '"*/1 * * * *"'
|
||||||
- CRON_RUN_ON_START=true
|
CRON_RUN_ON_START: "true"
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/ytdl-sub:/config
|
- "./volumes/ytdl-sub/:/config/"
|
||||||
restart: unless-stopped
|
restart: "unless-stopped"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue