Skip to content

Commit

Permalink
add manual TCP port mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Nov 22, 2023
1 parent 754976d commit 916fdce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def get_cfqt_url(port):
return False

def get_direct_url(port):
port = os.environ.get("MAPPED_TCP_PORT_" + port, port)
direct_address = os.environ.get('DIRECT_ADDRESS')
if direct_address == 'auto#vast-ai':
return get_vast_url(port)
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ services:
ROCM_VERSION: ${ROCM_VERSION:-5.6}
ROCM_LEVEL: ${ROCM_LEVEL:-runtime}
tags:
- "ghcr.io/ai-dock/base-image:${IMAGE_TAG}"
- "ghcr.io/ai-dock/base-image:${IMAGE_TAG:-cuda-11.8.0-base-22.04}"

image: ghcr.io/ai-dock/base-image:${IMAGE_TAG}
image: ghcr.io/ai-dock/base-image:${IMAGE_TAG:-cuda-11.8.0-base-22.04}

## For Nvidia GPU's - You probably want to uncomment this
#deploy:
Expand Down

0 comments on commit 916fdce

Please sign in to comment.