Could Not Get Yourls LocalHost to Run with Docker Compose #3596
Unanswered
MatthewGerges
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, for context all I am trying to do is to find an open-source way to use an API that creates redirect links that have an original URL. I then want to use the API to keep the branded redirect link the same but change what it directs to (i.e. change the original URL). To do so I am trying to set up Yourls on localhost:8080/admin as a first step but I am running into problems. What I did was I went to this site: https://hub.docker.com/_/yourls and tried copying the docker-compose.yml file to my own. Using Ubuntu 22.04.2 terminal on a Windows machine, I cd'd to the location where I have the dockercompose.yml file and I ran docker-compose up -d which didn't show me any errors in my terminal but when I visited localhost:8080/admin on my machine, the webpage showed me the following error:
Below is my docker-compose.yml file:
I also tried using the docker run command as well but also ran into errors doing that:
docker run --name some-yourlss -e YOURLS_DB_HOST=teescanlinks.mysql.database.azure.com \ -e YOURLS_DB_USER=USER -e YOURLS_DB_PASS=PWD -d yourls
This just gave me the following output:I would follow the standard installation procedure on here: https://yourls.org/docs/guide/install where you install the latest archive and follow the rest of the steps but the problem is that it requires me to unzip files to my website in the public_html folder (and I don't have a website - I'm doing this from bare scratch - no server or anything which is why I opted to use the docker compose).
Please let me know how to fix the issue or if I am missing something. Also, please advise me on next steps - after I get this running on my local machine, do I need to deploy the docker image to a server to use the API? And what steps would I need to follow in order to do so. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions