# Traefik won't accept Bluemap and only give Gateway Timeouts or 404s

**URL:** <https://community.traefik.io/t/traefik-wont-accept-bluemap-and-only-give-gateway-timeouts-or-404s/23105>\
**Category:** Traefik v3 (latest)\
**Tags:** docker\
**Created:** [June 7, 2024, 10:16pm UTC](https://community.traefik.io/t/traefik-wont-accept-bluemap-and-only-give-gateway-timeouts-or-404s/23105 "2024-06-07T22:16:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user54564984651981](https://avatars.discourse-cdn.com/v4/letter/u/dbc845/32.png) [@user54564984651981](https://community.traefik.io/u/user54564984651981)\
**Post date:** [June 7, 2024, 10:16pm UTC](https://community.traefik.io/t/traefik-wont-accept-bluemap-and-only-give-gateway-timeouts-or-404s/23105/1 "2024-06-07T22:16:28Z")

</div>

For context: Bluemap is a minecraft plugin that hosts a website alongside the minecraft instance which provides an interactive worldmap.

I host minecraft via docker-compose using itzg's docker image.  
On the same machiene I host a traefik instance. Since the bluemap site is by default exposed without ssl on a custom port, I wanted to make it more secure by putting it behind my traefik instance.  
Doing so was more complicated than I thought.

On Bluemap part, I changed the webroot directory config to represent the path inside the container to /data/bluemap/web in both web config files.  
Also I changed the port of the webserver to 80.

On traefik part, I added my common labels and the web network to my docker-compose. But doing to would as I would soon lern only result in a Gateway Timeout.

Here are my compose files of minecraft and traefik:

> **[\`\`\`version: "3.8"services: mc\_1206\_paper: container\_name: mc\_1206\_pa -...](https://pastebin.com/EizBWed6)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

I took one or two hours o trying to solve this issue but I am fully stuck...

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [June 8, 2024, 6:43am UTC](https://community.traefik.io/t/traefik-wont-accept-bluemap-and-only-give-gateway-timeouts-or-404s/23105/2 "2024-06-08T06:43:55Z")

</div>

The usual:

1. Set `.docker.network=` to indicate which Docker network to use, which is shared between Traefik and target service

2. Don’t use `ports:` on the target services to open ports on host. That enables to circumvent Traefik TLS and middlewares. Within the Docker network all ports are reachable.

3. Use `.loadbalancer.server.port=` to indicate which internal target port to use per `router`/`service`.

4. When multiple ports are used, you need multiple `entrypoints`, `routers` and `services`. Don’t forget to open the ports on Traefik container.

5. Web GUI apps usually don’t like to be placed under a path prefix with `PathPrefix()`. Make sure the app is available internally on that changed path.
