Skip to content

Commit

Permalink
Dynamically forward ports from trino integration service to host (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
Taragolis authored Dec 9, 2022
1 parent 7e776db commit 5dfdeee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/ci/docker-compose/integration-trino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ services:
retries: 50
restart: "on-failure"

# For avoid 'Error starting userland proxy: listen tcp4 0.0.0.0:38080: bind: address already in use'
# we forward container port to first available port in defined range.
# For get actual port we need to run `docker port {CONTAINER_NAME|CONTAINER_ID}`.
ports:
- "38080:8080"
- "37778:7778"
- "38080-38089:8080"
- "37778-37786:7778"

volumes:
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
Expand Down

0 comments on commit 5dfdeee

Please sign in to comment.