Skip to content

Commit 0ae6e10

Browse files
committed
docs: add additional info on docker networking
1 parent e014ed9 commit 0ae6e10

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/admin/config/private-network.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,23 @@ services:
5959
<Callout type="warning">Failure to configure `NO_PROXY` correctly can cause the proxy configuration to interfere with
6060
local networking between internal Sourcegraph services.</Callout>
6161

62+
## Docker networking configuration
63+
To avoid IP range collissions with the host network, it is recommended to explicitly configure a CIDR range for the
64+
Docker network.
65+
66+
```yaml
67+
networks:
68+
default:
69+
ipam:
70+
driver: default
71+
config:
72+
- subnet: "172.20.2.0/27" # CIDR range for the Docker network that doesn't overlap with the host network.
73+
```
74+
75+
Additional information on docker networking can be found here:
76+
* [Docker networking overview](https://docs.docker.com/network/)
77+
* [Networking in Compose](https://docs.docker.com/compose/how-tos/networking/)
78+
6279
## Configuring TLS certificates for private networks
6380

6481
When deploying Sourcegraph in private networks, you'll often need to configure TLS certificates to establish trusted

0 commit comments

Comments
 (0)