mirror of
https://github.com/vmorganp/Lazytainer.git
synced 2025-12-21 13:23:02 +01:00
add multi-port support
This commit is contained in:
@@ -4,22 +4,33 @@ services:
|
||||
container_name: lazytainer
|
||||
build: .
|
||||
environment:
|
||||
- PORT=81 # TODO make this work with more than one port
|
||||
- PORT=81,82 # comma separated list of ports...or just the one
|
||||
- LABEL=lazytainer # value of com.lazytainer.marker for other containers that lazytainer checks
|
||||
- TIMEOUT=30 # number of seconds to let container idle
|
||||
# - TIMEOUT=30 # OPTIONAL number of seconds to let container idle
|
||||
# - RXHISTLENGTH=10 # OPTIONAL number of seconds to keep rx history, uptime is calculated as first item and last item from this and must have a gap of at least $MINPACKETTHRESH
|
||||
# - MINPACKETTHRESH=10 # OPTIONAL number of packets that must be recieved to keepalive/start container
|
||||
ports:
|
||||
- 81:81
|
||||
- 82:82
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
|
||||
whoami2:
|
||||
container_name: whoami2
|
||||
whoami1:
|
||||
container_name: whoami1
|
||||
image: containous/whoami
|
||||
command: --port 81
|
||||
network_mode: service:lazytainer
|
||||
depends_on:
|
||||
- lazytainer
|
||||
# ports:
|
||||
# - 80:80
|
||||
labels:
|
||||
- "com.lazytainer.marker=lazytainer"
|
||||
|
||||
whoami2:
|
||||
container_name: whoami2
|
||||
image: containous/whoami
|
||||
command: --port 82
|
||||
network_mode: service:lazytainer
|
||||
depends_on:
|
||||
- lazytainer
|
||||
labels:
|
||||
- "com.lazytainer.marker=lazytainer"
|
||||
Reference in New Issue
Block a user