#Docker Container Cloudflared Tunnel

26 messages · Page 1 of 1 (latest)

fresh badge
#

Hell folks! I'm terribly sorry if this is not the place, but I need help.
I'm setting up a game server on a docker container, and in the docker-compose.yml I have both the game server and cloudflared set up with a tunnel token.
In cloudflare dashboard, I configured the tunnel and set up http://gamename:port , but I can not connect to the game's dashboard via the domain I set up.
Any help is appreciated, I'm new to setting up this kind of stuff.
Thank you :)

cyan sluice
#

?tunnel-tcp

civic juncoBOT
#

Cloudflare Tunnels use Cloudflare's proxy, which only supports proxying HTTP Traffic. If you want to use non-http applications over your tunnel, Cloudflare has a few other options:

For a few specific protocols such as SSH, RDP, and SMB, Cloudflare has guides for them here:
https://developers.cloudflare.com/cloudflare-one/applications/non-http/

For Arbitrary TCP like Minecraft, MySQL, and any other tcp application, Cloudflare has a guide here: https://developers.cloudflare.com/cloudflare-one/applications/non-http/arbitrary-tcp/

For Arbitrary UDP like Minecraft Bedrock, SMTP, and any other udp application, you will need to use Private Networking with WARP: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/private-net/connect-private-networks/

Please note for all of these except SSH, VNC and RDP which can be browser-rendered, you will either need to use cloudflared (Cloudflare's tunnel daemon) on the client machine running in the background or Private Networking with WARP, and have WARP installed on the client machine logged into your Zero Trust Team.

cyan sluice
#

TLDR:
To use tunnels to host game servers, every player also needs to install the tunnel/warp

fresh badge
#

Oh, but the game dashboard is http. It's only the dashboard not the game itself. It's a plugin installed in the game, for a web dashboard

cyan sluice
#

ok, that should work

fresh badge
#

Let me be specific, maybe I can receive better help

#

I am setting up BlueMap for Minecraft. I'm running Minecraft along with BlueMap inside a docker container. I can do localhost:25566 and localip:25566 , but cloudflare can not resolve dns

cyan sluice
#

ok, first of all, what's the domain/subdomain you're using?

fresh badge
#

Of course the domain is already configured

cyan sluice
#

When you say http://gamename:port, what exactly do you mean by gamename?

fresh badge
#

Bluemap is set up as a plugin inside Minecraft paper, and I configured the port 25566 on its setting. Then, in the docker compose image, I forwarded 25565 and 25566. In cloudflare, I set up http://minecraft:25566

#

The docker container is of course name minecraft

cyan sluice
#

Can you share the actual docker compose file (without private information)?

fresh badge
#

Yes, please give me a second

cyan sluice
fresh badge
cyan sluice
#

I don't think it does if you specify networks explicitly, only if you don't

#

Not sure though, I very rarely use it

#

The default network
When a Compose file doesn't declare explicit networks, Compose uses an implicit default network. Services without an explicit networks declaration are connected by Compose to this default network:

fresh badge
#

Alright, I'll try explicitly specifying the network

fresh badge
#

That worked, thank you

mortal emberBOT
#
DNS over Discord: A records

geek.cascai.art A @1.1.1.1 +noall +answer

NAME            | TTL  | DATA         
----------------+------+--------------
geek.cascai.art | 300s | 47.251.102.76