refactor Dockerfile and configuration for cloudflared tunnel setup

This commit is contained in:
ishikabhoyar
2025-10-31 16:28:37 +05:30
parent 9fa0528ff0
commit dbd8770f20
3 changed files with 32 additions and 73 deletions

View File

@@ -1,19 +1,19 @@
version: '3.8'
services:
frontend-tunnel:
tunnel:
build:
context: .
dockerfile: Dockerfile.tunnel
ports:
- "8001:8001"
restart: unless-stopped
container_name: monaco-frontend-tunnel
# Use extra_hosts to map host.docker.internal to host machine
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- NODE_ENV=production
# Define cloudflared environment variables
- NO_AUTOUPDATE=true
# Isolated network
networks:
- monaco-network
- monaco-tunnel-network
networks:
monaco-network:
monaco-tunnel-network:
driver: bridge