C9Glax / tranga

Docker-Container to monitor (Manga) Scanlation-Sites for download new chapters.
GNU General Public License v3.0
157 stars 15 forks source link

Can't rebind external/host port for tranga-api service in docker-compose #44

Closed z33a closed 1 year ago

z33a commented 1 year ago

I can't rebind external/host port for tranga-api in docker-compose.yml from "6531:6531" to for example "4006:6531". I think it has something to do with the tranga-website service using browser connected ip and hard-coded port "6531" in Website/apiConnector.js to connect to tranga-api.

You could make the port variable and let it be set in tranga/settings.json file that is already used for download location and working directory settings. Or make usage of docker networks and connect to the tranga-api through internal ports and service names.

C9Glax commented 1 year ago

Use the settings and point API-URL to port 4000

C9Glax commented 1 year ago

settings.json is tranga-api only