Skip to content

Commit 40b488c

Browse files
author
Jon
committed
fix internal obs portal url for docker-compose
1 parent 6aec9d9 commit 40b488c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

deploy/docker-compose.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ services:
99
- "8080:8080"
1010
restart: always
1111
environment:
12-
# These addresses should point to your Observation Portal backend deployment
12+
# This address should point to your Observation Portal backend deployment.
13+
# It is used within the frontend, so it can access localhost outside the docker network.
1314
- VUE_APP_OBSERVATION_PORTAL_API_URL=http://127.0.0.1:8000
14-
- INTERNAL_OBSERVATION_PORTAL_API_URL=http://127.0.0.1:8000
15+
# This address is used within the docker container, so localhost won't work normally.
16+
# Note that when using the default docker network on linux, 172.17.0.1 works
17+
# for localhost of the host network, but for mac you will need to use
18+
# `host.docker.internal` instead to point to localhost of the host network.
19+
- INTERNAL_OBSERVATION_PORTAL_API_URL=http://172.17.0.1:8000
1520
entrypoint: /entrypoint.sh

0 commit comments

Comments
 (0)