add compose service for ziti-tunnel host (#265)

This commit is contained in:
Ken Bingham
2021-01-13 14:48:15 -05:00
committed by GitHub
parent 4709405852
commit 8f4ff8f2a6
2 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -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" ]
+12 -5
View File
@@ -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