-
Notifications
You must be signed in to change notification settings - Fork 35
Fix docker-compose for macOS Docker Desktop #54
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,7 +2,10 @@ services: | |||||||||||||||||
| prometheus: | ||||||||||||||||||
| image: prom/prometheus:v3.4.1 | ||||||||||||||||||
| container_name: <%= app_name %>-prometheus | ||||||||||||||||||
| network_mode: host | ||||||||||||||||||
| ports: | ||||||||||||||||||
| - "9090:9090" | ||||||||||||||||||
|
||||||||||||||||||
| - "9090:9090" | |
| - "9090:9090" | |
| # Requires Docker Engine 20.10+ and a Compose implementation that supports | |
| # the special `host-gateway` value in `extra_hosts`. | |
| # | |
| # If `docker compose up` fails on an older Linux Docker setup, replace | |
| # `host-gateway` below with your Docker host gateway IP (for example | |
| # `172.17.0.1`, adjusted for your environment). |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| module Upright | ||
| VERSION = "0.2.0" | ||
| VERSION = "0.3.0" | ||
| end | ||
|
Comment on lines
1
to
3
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,4 +9,4 @@ scrape_configs: | |||||||||
| - job_name: "upright" | ||||||||||
| scrape_interval: 5s | ||||||||||
| static_configs: | ||||||||||
|
||||||||||
| static_configs: | |
| static_configs: | |
| # Use `host.docker.internal` when Prometheus runs in Docker. | |
| # If Prometheus runs directly on the host, use `localhost:9394` instead. |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,7 +2,10 @@ services: | |||||||||||
| prometheus: | ||||||||||||
| image: prom/prometheus:v3.4.1 | ||||||||||||
| container_name: upright-prometheus | ||||||||||||
| network_mode: host | ||||||||||||
| ports: | ||||||||||||
| - "9090:9090" | ||||||||||||
|
||||||||||||
| - "9090:9090" | |
| - "9090:9090" | |
| # `host-gateway` requires Docker Engine 20.10+ and a Compose implementation | |
| # that supports the special value. On older Linux Docker setups, upgrade | |
| # Docker/Compose or switch back to `network_mode: host`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The development Prometheus config now targets
host.docker.internal, which is correct for Dockerized Prometheus scraping a host-run Rails app, but it diverges from thelocalhost:9394example in the README. Consider adding an explanatory comment here (or updating the docs) to make it clear which target to use in each setup.