Can’t host dolos web app publicly
Closed this issue · 4 comments
Describe the bug
cant host dolos web app publicly
To Reproduce
Steps to reproduce the behavior:
- modify docker-compose.yml as follows:
environment:
VITE_HOST: 0.0.0.0
VITE_PORT: 8080
#VITE_API_URL: http://localhost:3000
VITE_API_URL: http://192.168.111.200:3000
VITE_MODE: server
change VITE_API_URL to http://192.168.111.200:3000(my public ip)
-
delete original web image :
sudo docker image rm dolos-web -
rebuild and start docker containers
suo docker-compose up -d
Expected behavior
upload code samples but still redirect to localhost:3000
sorry but it's not bug .I have no idea how to change the issue label
I figured out how to solve this problem . In fact the api configuration in docker-compose.yml should also be modified like
#DOLOS_API_HOSTS: localhost:3000
DOLOS_API_HOSTS: 192.168.111.200:3000
This issue can be closed
Hi @fatenocaster, thank you for reaching out.
I will update documentation to make it clear which environment variables need to be changed.
If you encounter other problems or if you have more questions: I've now added a "Request help" issue template.