# Running LabelStudio in a Docker container in GCP at a specific URL

**URL:** <https://community.labelstud.io/t/running-labelstudio-in-a-docker-container-in-gcp-at-a-specific-url/644>\
**Category:** Label Studio Support\
**Tags:** deployment\
**Created:** [October 9, 2025, 11:15am UTC](https://community.labelstud.io/t/running-labelstudio-in-a-docker-container-in-gcp-at-a-specific-url/644 "2025-10-09T11:15:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bneagu](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@bneagu](https://community.labelstud.io/u/bneagu)\
**Post date:** [October 9, 2025, 11:15am UTC](https://community.labelstud.io/t/running-labelstudio-in-a-docker-container-in-gcp-at-a-specific-url/644/1 "2025-10-09T11:15:00Z")

</div>

Hi,

I am trying to run LabelStudio in a Docker container on a VM in GCP.

The container is listening to a specific port (10xxx).

The URL [https://my.domain.com/labelstudio/](https://my.domain.com/labelstudio/) is routed to the VM and port 10xxx via a GC load balancer.

I have set up the environment variables:

LABEL\_STUDIO\_HOST=”[https://my.domain.com/labelstudio/”](https://my.domain.com/labelstudio/%E2%80%9D)

LABEL\_STUDIO\_PORT=”10xxx”

When starting LabelStudio I see:  
=\> Hostname correctly is set to: [https://my.domain.com/labelstudio/](https://my.domain.com/labelstudio/)  
=\> Django URL prefix is set to: /labelstudio  
=\> Database and media directory: /label-studio/data  
=\> Static URL is set to: /static/

[…]

Starting development server at http://0.0.0.0:10xxx/

The problem starts when I try to access [https://my.domain.com/labelstudio/](https://my.domain.com/labelstudio/)

I get HTTP 404:  
[2025-10-09 11:09:28,117] [django.request::log\_response::253] [WARNING] Not Found: /labelstudio/labelstudio/  
[2025-10-09 11:09:28,121] [django.server::log\_message::213] [WARNING] “GET /labelstudio/ HTTP/1.1” 404 170851

I tried playing with the environment variable LABEL\_STUDIO\_HOST without luck.

Any help would be appreciated.

Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![makseq](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.labelstud.io/makseq/32/26_2.png) [@makseq](https://community.labelstud.io/u/makseq)\
**Post date:** [October 21, 2025, 7:59pm UTC](https://community.labelstud.io/t/running-labelstudio-in-a-docker-container-in-gcp-at-a-specific-url/644/2 "2025-10-21T19:59:46Z")

</div>

Hello,

subdomains are allowed only when you use it together with our nginx configuration:

> <https://github.com/HumanSignal/label-studio/blob/develop/deploy/default.conf>

---

<div class="post-metadata">

**Author:** ![bneagu](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@bneagu](https://community.labelstud.io/u/bneagu)\
**Post date:** [October 22, 2025, 10:53am UTC](https://community.labelstud.io/t/running-labelstudio-in-a-docker-container-in-gcp-at-a-specific-url/644/3 "2025-10-22T10:53:22Z")

</div>

Many thanks. I got it working without nginx, but with Load Balancer URL rewrite and Docker configurations.

---

<div class="post-metadata">

**Author:** ![makseq](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.labelstud.io/makseq/32/26_2.png) [@makseq](https://community.labelstud.io/u/makseq)\
**Post date:** [October 22, 2025, 12:42pm UTC](https://community.labelstud.io/t/running-labelstudio-in-a-docker-container-in-gcp-at-a-specific-url/644/4 "2025-10-22T12:42:37Z")

</div>

Great! Thank you for sharing your solution with us!
