mirror of
https://github.com/openziti/ziti.git
synced 2026-10-13 15:51:21 +00:00
add compose service for ziti-tunnel host (#265)
This commit is contained in:
@@ -2,7 +2,7 @@ FROM debian:stable-slim as fetch-ziti-artifacts
|
||||
# This build stage grabs artifacts that are copied into the final image.
|
||||
# It uses the same base as the final image to maximize docker cache hits.
|
||||
|
||||
ARG ZITI_VERSION="0.15.3"
|
||||
ARG ZITI_VERSION="0.18.2"
|
||||
|
||||
ARG ARTIFACTORY_TOKEN
|
||||
ARG ARTIFACTORY_BASE_URL="https://netfoundry.jfrog.io/netfoundry"
|
||||
@@ -36,4 +36,4 @@ COPY ./docker-entrypoint.sh /
|
||||
RUN chmod +x /docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||
CMD [ "run" ]
|
||||
CMD [ "run" ]
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
version: "3.3"
|
||||
services:
|
||||
ziti-test:
|
||||
image: netfoundry/ziti-tunnel:tproxy
|
||||
image: netfoundry/ziti-tunnel:0.18.2
|
||||
network_mode: host
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
entrypoint: ["sh", "-c", "while true; do sleep 11; done"]
|
||||
ziti-tproxy:
|
||||
image: netfoundry/ziti-tunnel:tproxy
|
||||
image: netfoundry/ziti-tunnel:0.18.2
|
||||
network_mode: host
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
@@ -18,7 +18,7 @@ services:
|
||||
command: tproxy
|
||||
# command: tproxy --resolver udp://127.0.0.123:53
|
||||
ziti-iproxy:
|
||||
image: netfoundry/ziti-tunnel:tproxy
|
||||
image: netfoundry/ziti-tunnel:0.18.2
|
||||
volumes:
|
||||
- .:/netfoundry
|
||||
network_mode: host
|
||||
@@ -28,7 +28,7 @@ services:
|
||||
- NF_REG_NAME
|
||||
command: tproxy --resolver none
|
||||
ziti-tun:
|
||||
image: netfoundry/ziti-tunnel:tun
|
||||
image: netfoundry/ziti-tunnel:0.18.2
|
||||
volumes:
|
||||
- .:/netfoundry
|
||||
network_mode: host
|
||||
@@ -40,7 +40,7 @@ services:
|
||||
devices:
|
||||
- "/dev/net/tun:/dev/net/tun"
|
||||
ziti-proxy:
|
||||
image: netfoundry/ziti-tunnel:proxy
|
||||
image: netfoundry/ziti-tunnel:0.18.2
|
||||
volumes:
|
||||
- .:/netfoundry
|
||||
environment:
|
||||
@@ -49,3 +49,10 @@ services:
|
||||
- "8888:8888"
|
||||
- "9999:9999"
|
||||
command: proxy "my example service":8888 "my other example service":9999
|
||||
ziti-host:
|
||||
image: netfoundry/ziti-tunnel:0.18.2
|
||||
volumes:
|
||||
- .:/netfoundry
|
||||
environment:
|
||||
- NF_REG_NAME
|
||||
command: host
|
||||
|
||||
Reference in New Issue
Block a user