refactor docker-compose configuration to simplify network setup for tunnel service
This commit is contained in:
@@ -4,16 +4,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.tunnel
|
dockerfile: Dockerfile.tunnel
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# Use extra_hosts to map host.docker.internal to host machine
|
network_mode: "host"
|
||||||
extra_hosts:
|
|
||||||
- "host.docker.internal:host-gateway"
|
|
||||||
environment:
|
environment:
|
||||||
# Define cloudflared environment variables
|
# Define cloudflared environment variables
|
||||||
- NO_AUTOUPDATE=true
|
- NO_AUTOUPDATE=true
|
||||||
# Isolated network
|
|
||||||
networks:
|
|
||||||
- monaco-tunnel-network
|
|
||||||
|
|
||||||
networks:
|
|
||||||
monaco-tunnel-network:
|
|
||||||
driver: bridge
|
|
||||||
|
|||||||
Reference in New Issue
Block a user