ad3m3r5 / scratch-map

An open-source scratch-off style map to track your travels.
GNU Affero General Public License v3.0
162 stars 3 forks source link

Website is not reachable #21

Closed pepetko61 closed 1 year ago

pepetko61 commented 1 year ago

Hello, This may be a quick issue, but I do not know how to solve this error any more... I have created the container as said in instructions, that is mkdir -p /opt/docker/scratch-map/data chown -R 1000:1000 /opt/docker/scratch-map/data

then I run the command

docker run -d --restart=always --name scratch-map -p 7850:80 \
  -e PORT=7850 -e DBLOCATION=/data \
  -v /opt/docker/scratch-map/data:/data \
  ad3m3r5/scratch-map:latest

I checked log in Portainer and it's showing: scratch-map listening on port: 7850

But when I try to reach the address at ipofdockerhost:7850 I get an error saying This site can't be reached, ERR_CONNECTION_REFUSED. I tried both with HTTP and also with HTTPS.

Any help is appreciated. Thanks!

pepetko61 commented 1 year ago

Okay, I got it fixed... Just needed to also change second port.. Kinda embarrassing actually..

If anyone has this issue it would be: docker run -d --restart=always --name scratch-map -p 7850:7850 \ -e PORT=7850 -e DBLOCATION=/data \ -v /opt/docker/scratch-map/data:/data \ ad3m3r5/scratch-map:latest