mirror of
https://github.com/vmorganp/Lazytainer.git
synced 2026-01-03 03:17:24 +01:00
* remove packet count testing subproject * move examples * delete docker ignore after file reorganization * Notes for later me * Update minecraft example * README updates * More readme updates * change groups to group * code comments * remove notes to self * remove ... * fix zerotier example * fix bad copypasta * Readme updates * fix indentation * Create FUNDING.yml --------- Co-authored-by: Morgan <morgan@pop-os.localdomain>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
version: "3"
|
|
services:
|
|
lazytainer:
|
|
container_name: lazytainer
|
|
image: ghcr.io/vmorganp/lazytainer:master
|
|
environment:
|
|
- VERBOSE=true # probably set this to false unless you're debugging or doing the initial demo
|
|
ports:
|
|
- 81:81
|
|
- 82:82
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
labels:
|
|
# if there's no incoming traffic on port 81, stop whoami1
|
|
- "lazytainer.group.group1.pollRate=1"
|
|
- "lazytainer.group.group1.inactiveTimeout=30"
|
|
- "lazytainer.group.group1.ports=81"
|
|
- "lazytainer.group.group1.MINPACKETTHRESH=10"
|
|
- "lazytainer.group.group1.sleepMethod=stop" # can be either "stop" or "pause", or left blank for stop
|
|
- "lazytainer.group.group1.netInterface=ztukuxxqii"
|
|
|
|
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.group=group1"
|
|
|