# Problems encountered during the quick startup of Docker Compose

**URL:** <https://openziti.discourse.group/t/problems-encountered-during-the-quick-startup-of-docker-compose/3809>\
**Category:** Uncategorized\
**Created:** [January 20, 2025, 6:48am UTC](https://openziti.discourse.group/t/problems-encountered-during-the-quick-startup-of-docker-compose/3809 "2025-01-20T06:48:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alleniverson33](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/alleniverson33/32/3031_2.png) [@alleniverson33](https://openziti.discourse.group/u/alleniverson33)\
**Post date:** [January 20, 2025, 6:48am UTC](https://openziti.discourse.group/t/problems-encountered-during-the-quick-startup-of-docker-compose/3809/1 "2025-01-20T06:48:45Z")

</div>

Hi  
When I start the Ziti network using Docker Composer ， create “”Your First Service“”  
The topology is like this

 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/5/56bf5636badef53e13ec20a453ae858122df9044.png)  
According to my understanding, The public router transfers traffic to a router named ziti private blue，Then offload the traffic to the real network。  
Here is my configuration for http.host.v1  
 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/8/8b6515dfae3f8dd909a5e90827d7c506d32e3d3c.png)  
Client access prompt 502

I thought it was a port error, I tried 808000  
I really don't know where the problem lies  
Salute to openziti maintainers in advance

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [January 20, 2025, 1:15pm UTC](https://openziti.discourse.group/t/problems-encountered-during-the-quick-startup-of-docker-compose/3809/2 "2025-01-20T13:15:04Z")

</div>

You were so close! With the example you're citing, the router and the web server are two different containers in the blue network. As they are two different containers, you can't use "localhost". Instead you want to use the container name or one of it's many aliases. So had you used any of these addresses, you would have been successful! 🙂

```plaintext
- web-test-blue
- web-test.blue
- web.test.blue

```

You can always test this out in docker by either exec'ing into the container and curling when inside the container:

```auto
docker exec -it complex-ziti-private-blue-1 bash
ziti@fdf999e4aa5a:/persistent$ curl web-test-blue:8000
<pre>
Hello World
...snip...

```

Or by exec'ing the curl instead of going into bash:

```auto
$ docker exec -it complex-ziti-private-blue-1 curl http://web-test-blue:8000
<pre>
Hello World

```

So, just change your address shown and you should be successful 🙂

---

<div class="post-metadata">

**Author:** ![alleniverson33](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/alleniverson33/32/3031_2.png) [@alleniverson33](https://openziti.discourse.group/u/alleniverson33)\
**Post date:** [January 21, 2025, 12:44am UTC](https://openziti.discourse.group/t/problems-encountered-during-the-quick-startup-of-docker-compose/3809/3 "2025-01-21T00:44:34Z")

</div>

Yes, I succeeded. Thank you very much
