# Gitea behind Traefik on Docker

**URL:** <https://community.traefik.io/t/gitea-behind-traefik-on-docker/7226>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [August 7, 2020, 3:29pm UTC](https://community.traefik.io/t/gitea-behind-traefik-on-docker/7226 "2020-08-07T15:29:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rifavov154](https://avatars.discourse-cdn.com/v4/letter/r/8491ac/32.png) [@rifavov154](https://community.traefik.io/u/rifavov154)\
**Post date:** [August 7, 2020, 3:29pm UTC](https://community.traefik.io/t/gitea-behind-traefik-on-docker/7226/1 "2020-08-07T15:29:23Z")

</div>

Hello.

I’ve been having a very difficult time trying to get Traefik to play nicely with an instance of Gitea that is on port 3000.

Enclosed is my configuration, where I have two routers, `gitea_site` (HTTP) and `gitea_site_secured` (HTTPS). HTTP is automatically redirected to HTTPS i.e. `gitea_site` redirects to `gitea_site_secured` with some middleware.

I am unable to make the link between `gitea_site_secured` router and somehow forwarding that onto port 3000 of the Gitea instance. I get a gateway timeout error within Traefik when navigating to [git.example.com](http://git.example.com)

After reading the documentation, it appears I have to define a service and load balancer.

I have done this in line 40 + 41 but it did not work (tried many combinations).

Any help or pointers in the right direction would be appreciated.

docker-compose.yml configratuon: [https://pastebin.com/1E0br70W](https://pastebin.com/1E0br70W)

Thank you.
