services: # The Minecraft Server mc-server: build: . container_name: mc-server restart: unless-stopped ports: - "25565:25565" # Local access environment: - AUTO_UPDATE=true # Set to 'true' to auto-update on every restart - RAM=4G # Amount of RAM for the server volumes: - ./minecraft_data:/data # SAVES FILES LOCALLY in 'minecraft_data' folder networks: - tunnel-net # The Tokenless Cloudflare Tunnel cloudflared: image: cloudflare/cloudflared:latest container_name: cloudflare-tunnel restart: unless-stopped # This command creates a temporary Quick Tunnel for TCP traffic command: tunnel --url tcp://mc-server:25565 networks: - tunnel-net networks: tunnel-net: