Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hey! I Was Wondering Is It Possible To Change The Ports Of The Trains Server? We Hope To Run A Trains Server Locally On Our Own Server, But We Already Use Some Of The Default Ports. When I Changed Some Of The Outgoing Ports In The Docker-Compose, The Trai

Hey! I was wondering is it possible to change the ports of the Trains server? We hope to run a trains server locally on our own server, but we already use some of the default ports. When I changed some of the outgoing ports in the docker-compose, the trains server didn't function correctly. It didn't ask for a username, settings were gone and it gave warnings of not being able to find projects and experiments. Is this expected, or should I be able to change outgoing ports in the docker-compose?

  
  
Posted 3 years ago
Votes Newest

Answers 6


Yes, we plan to fix that soon 🙂

  
  
Posted 3 years ago

I see! I will check this out!

  
  
Posted 3 years ago

Yep, the trains server is basically a docker-compose based service.
All you have to do is change the ports in the docker-compose.yml file.

If you followed the instructions in the docs you should find that file in /opt/trains/docker-compose.yml and then you will see that there are multiple services ( apiserver , elasticsearch , redis etc.) and in each there might be a section called ports which then states the mapping of the ports.
The number on the left, is the port you want to change.

So for example, if you go to the webserver (which is the service that you interact with when you see the trains server dashboard in your browser) you'll see the ports section has the value of "8080:80" - this means that you will find the dashboard on port 8080 - simply change that to "8765:80" for example, and then you will find it on port 8765 . The effect only takes change after you restart the server, to do so run the commands docker-compose -f /opt/trains/docker-compose.yml down followed by docker-compose -f /opt/trains/docker-compose.yml up -d . Note: You should never change the number on the right side! .

More information about ports and docker-compose can be found in https://docs.docker.com/compose/compose-file/#ports

Disclaimer - I'm not part of Allegro, just a user like you 🙂

  
  
Posted 3 years ago

WackyRabbit7 Thank you for the in depth answer, but as DefeatedCrab47 have noted it seems it is not fully possible yet, which is a pretty big blocker for us to integrate trains to our workflow.
SuccessfulKoala55 Great, looking forward to it!

  
  
Posted 3 years ago

Hey UnsightlyShark53 , you can also use a load balancer with subdomains instead of using port numbers. Instead of port 8080 use the app subdomain, instead of port 8008 use the api subdomain and instead of 8081 use the files subdomain

  
  
Posted 3 years ago
605 Views
6 Answers
3 years ago
one year ago
Tags
Similar posts