Skip to content

Commit 280b741

Browse files
committed
Fixes with dockek.internal.host
1 parent 8d5eea1 commit 280b741

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

label_studio_ml/examples/gliner/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ services:
3232
# Determine the actual IP using 'ifconfig' (Linux/Mac) or 'ipconfig' (Windows).
3333
- LABEL_STUDIO_URL=http://host.docker.internal:8080
3434
- LABEL_STUDIO_API_KEY=
35+
extra_hosts:
36+
- "host.docker.internal:host-gateway" # for macos and unix
3537
ports:
3638
- "9090:9090"
3739
volumes:

label_studio_ml/examples/llm_interactive/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ services:
4545
# specify these parameters if you want to use basic auth for the model server
4646
- BASIC_AUTH_USER=
4747
- BASIC_AUTH_PASS=
48+
extra_hosts:
49+
- "host.docker.internal:host-gateway" # for macos and unix
4850
ports:
4951
- 9090:9090
5052
volumes:

label_studio_ml/examples/tesseract/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ services:
2929
- AWS_ACCESS_KEY_ID=your-MINIO_ROOT_USER
3030
- AWS_SECRET_ACCESS_KEY=your-MINIO_ROOT_PASSWORD
3131
- AWS_ENDPOINT=http://host.docker.internal:9000
32+
extra_hosts:
33+
- "host.docker.internal:host-gateway" # for macos and unix
3234

3335
minio:
3436
container_name: minio

label_studio_ml/examples/timeseries_segmenter/docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ services:
1313
# LABEL_STUDIO_HOST: This is the host URL for Label Studio, used for training.
1414
# It can be set via environment variable "LABEL_STUDIO_HOST".
1515
# If not set, it defaults to 'http://localhost:8080'.
16-
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-http://localhost:8080}
16+
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-http://host.docker.internal:8080}
1717
# LABEL_STUDIO_API_KEY: This is the API key for Label Studio, used for training.
1818
# It can be set via environment variable "LABEL_STUDIO_API_KEY".
1919
# There is no default value for this, so it must be set.
2020
- LABEL_STUDIO_API_KEY=${LABEL_STUDIO_API_KEY}
2121
# START_TRAINING_EACH_N_UPDATES: This is the number of updates after which training starts.
2222
# It is an integer value and can be set via environment variable "START_TRAINING_EACH_N_UPDATES".
2323
# If not set, it defaults to 10.
24-
- START_TRAINING_EACH_N_UPDATES=${START_TRAINING_EACH_N_UPDATES:-10}
24+
- START_TRAINING_EACH_N_UPDATES=${START_TRAINING_EACH_N_UPDATES:-1}
2525
# specify these parameters if you want to use basic auth for the model server
2626
- BASIC_AUTH_USER=
2727
- BASIC_AUTH_PASS=
@@ -34,6 +34,8 @@ services:
3434
- THREADS=8
3535
# specify the model directory (likely you don't need to change this)
3636
- MODEL_DIR=/data/models
37+
extra_hosts:
38+
- "host.docker.internal:host-gateway" # for macos and unix
3739
ports:
3840
- "9090:9090"
3941
volumes:

label_studio_ml/examples/watsonx_llm/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ services:
5555
# The name of the schema within the catalog that you'll insert your data into
5656
- WATSONX_SCHEMA=
5757
- WATSONX_TABLE=
58-
58+
extra_hosts:
59+
- "host.docker.internal:host-gateway" # for macos and unix
5960

6061
ports:
6162
- "9090:9090"

label_studio_ml/examples/yolo/docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ services:
2929
# Use prefix 'http://' or 'https://' for the URL always.
3030
# Determine the actual IP using 'ifconfig' (Linux/Mac) or 'ipconfig' (Windows).
3131
# or you can try http://host.docker.internal:<label-studio-port> if you run LS on the same machine
32-
- LABEL_STUDIO_URL=http://host.docker.internal:8080
33-
- LABEL_STUDIO_API_KEY=
32+
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-http://host.docker.internal:8080}
33+
- LABEL_STUDIO_API_KEY=${LABEL_STUDIO_API_KEY}
3434

3535
# YOLO parameters
3636

@@ -43,6 +43,8 @@ services:
4343
- MODEL_SCORE_THRESHOLD=0.5
4444
# Model root directory, where the YOLO model files are stored
4545
- MODEL_ROOT=/app/models
46+
extra_hosts:
47+
- "host.docker.internal:host-gateway" # for macos and unix
4648
ports:
4749
- "9090:9090"
4850
volumes:

0 commit comments

Comments
 (0)