# 自定义 Docker 网络配置 - 容器间通信

**URL:** https://meta.discourse.org/t/custom-docker-network-configuration-container-to-container-comms/84654
**Category:** Self-hosting
**Created:** [2018年四月5日 15:52 UTC](https://meta.discourse.org/t/custom-docker-network-configuration-container-to-container-comms/84654 "2018-04-05T15:52:23Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Cameron\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cameron_d/32/97535_2.png) [@Cameron\_D](https://meta.discourse.org/u/Cameron_D)
#### Post date: [2018年四月6日 10:57 UTC](https://meta.discourse.org/t/custom-docker-network-configuration-container-to-container-comms/84654/11 "2018-04-06T10:57:18Z")

</div>

Does it work if you pass `--alias my_forum` to the network connect command?

I just found this too:

> [@Starting Discourse on a Specific Docker Network](https://meta.discourse.org/t/starting-discourse-on-a-specific-docker-network/49401/4):
>
> It looks like I can specify docker args in web\_only.yml though, do you know the syntax for that? Edit: Okay the syntax was really easy, just: docker\_args: “–network squadwars” Now it’s working fine, thank you. (Still doesn’t work from commandline but I don’t care :)) Edit: Well the squadwars network is working fine, but discourse seems to be broken. I’m going to try to add it onto the host network as well, not sure if that works.

(I’ll be trying to get my Discourse instance onto an internal network soon, so I’m interested to see what you get working)

---

_[View the full topic](https://meta.discourse.org/t/custom-docker-network-configuration-container-to-container-comms/84654)._
