Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(recipes): Simplify the extra_hosts recipe #273

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ This starter kit is compatible with Docker for Windows, so you can enjoy native
- You will be prompted to run the env vars manually if you use PowerShell.
</details>

### How to access a container via a custom hostname from another container
### How to access a container via hostname from another container

<details>

Expand All @@ -926,17 +926,11 @@ services:
builder:
# [...]
extra_hosts:
- "app.test:172.17.0.1"
- "api.app.test:172.17.0.1"
- "admin.app.test:172.17.0.1"
- "app.test:host-gateway"
- "api.app.test:host-gateway"
- "admin.app.test:host-gateway"
```

> [!NOTE]
> `172.17.0.1` is the default IP of the `docker0` interface. It can be
> different on some installations. You can see this IP thanks to the following
> command `ip address show docker0`. Since `docker-compose.yml` file supports
> environment variables you may script this with Castor.

</details>

## Credits
Expand Down
Loading