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

docker: actually remove the port mapping in host mode #9603

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

volumes:
psql_data:
valkey_data:
Expand Down
20 changes: 9 additions & 11 deletions docker/docker-compose.host.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
version: '3'

services:
postgres:
ports: []
ports: !reset []
network_mode: host
healthcheck:
test: [ "CMD", "pg_isready", "-d", "postgres://osrd:password@localhost:5432/osrd" ]

valkey:
ports: []
ports: !reset []
network_mode: host

editoast:
ports: []
ports: !reset []
network_mode: host
environment:
EDITOAST_PORT: 8090
Expand All @@ -25,28 +23,28 @@ services:
test: [ "CMD", "curl", "-f", "http://localhost:8090/health" ]

gateway:
ports: []
ports: !reset []
network_mode: host
volumes:
- "./docker/gateway.dev.host.toml:/gateway.toml"

osrd-images:
ports: []
ports: !reset []
network_mode: host

rabbitmq:
ports: []
ports: !reset []
network_mode: host

core:
ports: []
ports: !reset []
network_mode: host
environment:
CORE_EDITOAST_URL: "http://127.0.0.1:8090"
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: "http://127.0.0.1:4317"

osrdyne:
ports: []
ports: !reset []
network_mode: host
environment:
OSRDYNE__WORKER_DRIVER__HOST_NETWORKING: "true"
Expand All @@ -59,7 +57,7 @@ services:
OSRDYNE__OPENTELEMETRY__ENDPOINT: "http://localhost:4317"

jaeger:
ports: []
ports: !reset []
network_mode: host

wait-healthy:
Expand Down
2 changes: 0 additions & 2 deletions docker/docker-compose.single-worker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
editoast:
environment:
Expand Down
Loading