Docker Compose Example 1 (Lazy)
version: "3"
services:
lazytainer:
container_name: lazytainer
image: ghcr.io/vmorganp/lazytainer:master
environment:
- PORT=8081 # comma separated list of ports...or just the one
- LABEL=lazytainer # value of lazytainer.marker for other containers that lazytainer checks
- TIMEOUT=15 # OPTIONAL number of seconds to let container idle
- MINPACKETTHRESH=10 # OPTIONAL number of packets that must be recieved to keepalive/start container
- POLLRATE=1 # OPTIONAL number of seconds to sleep between polls
- VERBOSE=true # probably set this to false unless you're debugging or doing the initial demo
ports:
- 8081:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
youtube:
container_name: youtube
image: modenaf360/youtube-dl-nas
environment:
- MY_ID=dbtech
- MY_PW=password
volumes:
- /home/docker/YouTube:/downfolder
network_mode: service:lazytainer
depends_on:
- lazytainer # wait for lazytainer to start before starting
labels:
- "lazytainer.marker=lazytainer" # required label to make it work