mirror of
https://github.com/vmorganp/Lazytainer.git
synced 2026-01-05 04:05:24 +01:00
* Add interface environment variable * Add back accidentally removed comment * Update README to reflect changes * Fix typos * Add ZeroTier guide * README formatting Co-authored-by: Morgan Patterson <31448722+vmorganp@users.noreply.github.com>
38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
version: "3"
|
|
services:
|
|
lazytainer:
|
|
container_name: lazytainer
|
|
image: ghcr.io/vmorganp/lazytainer:master
|
|
environment:
|
|
- PORT=81 # comma separated list of ports...or just the one
|
|
- LABEL=lazytainer # value of lazytainer.marker for other containers that lazytainer checks
|
|
- TIMEOUT=30 # 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
|
|
- INTERFACE=ztukuxxqii # Replace this with your ifconfig interface
|
|
ports:
|
|
- 81:81 # Can remove this section if you only want it accessible via zerotier
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
zerotier:
|
|
image: zyclonite/zerotier
|
|
container_name: zerotier
|
|
network_mode: "service:lazytainer"
|
|
devices:
|
|
- /dev/net/tun
|
|
volumes:
|
|
- './zt:/var/lib/zerotier-one'
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_ADMIN
|
|
whoami1:
|
|
container_name: whoami1
|
|
image: containous/whoami
|
|
command: --port 81
|
|
network_mode: service:lazytainer
|
|
depends_on:
|
|
- lazytainer
|
|
labels:
|
|
- "lazytainer.marker=lazytainer"
|
|
- "lazytainer.sleepMethod=pause" |