# Traefik is trying to target IP from different docker network

**URL:** <https://community.traefik.io/t/traefik-is-trying-to-target-ip-from-different-docker-network/18920>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [June 10, 2023, 10:13am UTC](https://community.traefik.io/t/traefik-is-trying-to-target-ip-from-different-docker-network/18920 "2023-06-10T10:13:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Pheggas](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/pheggas/32/7210_2.png) [@Pheggas](https://community.traefik.io/u/Pheggas)\
**Post date:** [June 10, 2023, 3:07pm UTC](https://community.traefik.io/t/traefik-is-trying-to-target-ip-from-different-docker-network/18920/3 "2023-06-10T15:07:19Z")

</div>

By `docker.network` you mean setting in static configuration of traefik or rather manually creating / specifying docker network?

> [@bluepuma77](#):
>
> You can’t use `traefik.yml` and `command` at the same time for static config, decide for one.

I know. I needed to use it to check if some files are present inside the filesystem.

Update: As i read the docker-compose file that you sent, i defined what network should docker create and now i have the same setup but instead of traefik\_default as name, it is proxy as the name of the network. Anyway, nothing changed really ald traefik still target wrong IP. Shouldn't i specify the network as label inside of keycloak docker compose file?

---

_[View the full topic](https://community.traefik.io/t/traefik-is-trying-to-target-ip-from-different-docker-network/18920)._
