-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathlazytainer.yml
executable file
·46 lines (43 loc) · 1.64 KB
/
lazytainer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# With Lazytainer, you can have containers start up when you need them and then shut down after a specified amount of time after you're done using them!
# Docker Compose Example
version: "3"
services:
lazytainer3:
container_name: lazytainer3
image: ghcr.io/vmorganp/lazytainer:master
environment:
- PORT=8080, 3000 # comma separated list of ports...or just the one
- LABEL=lazytainer3 # 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:
- 8080:8080
- 3000:3000
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
youtube:
container_name: youtube3
image: modenaf360/youtube-dl-nas
environment:
- MY_ID=dbtech
- MY_PW=password
volumes:
- /home/docker/YouTube:/downfolder
network_mode: service:lazytainer3
depends_on:
- lazytainer3 # wait for lazytainer to start before starting
labels:
- "lazytainer.marker=lazytainer3" # required label to make it work
taisun:
image: linuxserver/taisun
container_name: taisun3
restart: unless-stopped
network_mode: service:lazytainer3
depends_on:
- lazytainer3
labels:
- "lazytainer.marker=lazytainer3"
volumes:
- /var/run/docker.sock:/var/run/docker.sock