Tiritibambix, 1 year ago I struggled a lot with ports. I still didn’t get how ports are configured in the container, but a user tried to help me and now I get an error 500 Here’s my compose (path is OMV path) <span style="color:#323232;">version: "3.3" </span><span style="color:#323232;">services: </span><span style="color:#323232;"> shotshare: </span><span style="color:#323232;"> ports: </span><span style="color:#323232;"> - 2000:2000 </span><span style="color:#323232;"> environment: </span><span style="color:#323232;"> - HOST=:2000 </span><span style="color:#323232;"> - ALLOW_REGISTRATION=false </span><span style="color:#323232;"> volumes: </span><span style="color:#323232;"> - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/shotshare_data:/app/storage </span><span style="color:#323232;"> - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/database.sqlite:/app/database/database.sqlite </span><span style="color:#323232;"> - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/.env:/app/.env </span><span style="color:#323232;"> restart: unless-stopped </span><span style="color:#323232;"> container_name: shotshare </span><span style="color:#323232;"> image: mdshack/shotshare:latest </span><span style="color:#323232;">networks: {} </span> image <span style="color:#323232;">ERR | ts=1705936180.7673454 logger=http.log.access msg=handled request request={"remote_ip":"192.168.1.106","remote_port":"57659","client_ip":"192.168.1.106","proto":"HTTP/1.1","method":"GET","host":"192.168.1.104:2000","uri":"/","headers":{"Dnt":["1"],"Sec-Gpc":["1"],"Connection":["keep-alive"],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Accept-Language":["en-US,en;q=0.5"],"Accept-Encoding":["gzip, deflate"],"Cookie":[]}} bytes_read=0 user_id= duration=0.168065318 size=651 status=500 resp_headers={"Status":["500 Internal Server Error"],"X-Powered-By":["PHP/8.3.1"],"Cache-Control":["no-cache, private"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"Date":["Mon, 22 Jan 2024 15:09:40 GMT"],"Content-Type":["text/html; charset=UTF-8"]} </span> I can’t wrap my head around this
I struggled a lot with ports.
I still didn’t get how ports are configured in the container, but a user tried to help me and now I get an error 500
Here’s my compose (path is OMV path)
<span style="color:#323232;">version: "3.3" </span><span style="color:#323232;">services: </span><span style="color:#323232;"> shotshare: </span><span style="color:#323232;"> ports: </span><span style="color:#323232;"> - 2000:2000 </span><span style="color:#323232;"> environment: </span><span style="color:#323232;"> - HOST=:2000 </span><span style="color:#323232;"> - ALLOW_REGISTRATION=false </span><span style="color:#323232;"> volumes: </span><span style="color:#323232;"> - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/shotshare_data:/app/storage </span><span style="color:#323232;"> - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/database.sqlite:/app/database/database.sqlite </span><span style="color:#323232;"> - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/.env:/app/.env </span><span style="color:#323232;"> restart: unless-stopped </span><span style="color:#323232;"> container_name: shotshare </span><span style="color:#323232;"> image: mdshack/shotshare:latest </span><span style="color:#323232;">networks: {} </span>
image
<span style="color:#323232;">ERR | ts=1705936180.7673454 logger=http.log.access msg=handled request request={"remote_ip":"192.168.1.106","remote_port":"57659","client_ip":"192.168.1.106","proto":"HTTP/1.1","method":"GET","host":"192.168.1.104:2000","uri":"/","headers":{"Dnt":["1"],"Sec-Gpc":["1"],"Connection":["keep-alive"],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8"],"Accept-Language":["en-US,en;q=0.5"],"Accept-Encoding":["gzip, deflate"],"Cookie":[]}} bytes_read=0 user_id= duration=0.168065318 size=651 status=500 resp_headers={"Status":["500 Internal Server Error"],"X-Powered-By":["PHP/8.3.1"],"Cache-Control":["no-cache, private"],"Content-Encoding":["gzip"],"Vary":["Accept-Encoding"],"Server":["Caddy"],"Date":["Mon, 22 Jan 2024 15:09:40 GMT"],"Content-Type":["text/html; charset=UTF-8"]} </span>
I can’t wrap my head around this