Hi SquareFish25 , regarding the security group configuration:
The ports for ElasticSearch, Redis and MongoDB should not be exposed to the whole world. In fact, you can actually even configure docker-compose so they won't be exposed outside of the docker network (see https://allegro.ai/docs/deploying_trains/trains_server_config/#network-and-security )
Also, note that port
8008 is for API and
8081 is for the fileserver (just so your descriptions there will be correct)
Hi SquareFish25 ,
I am using HTTP at the moment because HTTPS doesn't work, how should I change the rules?
You can setup the AWS ELB to handle that, if you'd like. See https://allegro.ai/docs/deploying_trains/trains_server_config/#sub-domain-configuration
How can I restart the Trains Server on EC2?
For what purpose? If you want to reload configuration etc., you can simply do
docker-compose down and than
docker-compose up from the folder containing the
You can also restart the EC2 instance while the docker-compose is running, but it takes longer and has the same effect 😄
Hi SuccessfulKoala55 ,
Thank you for your help. It is working now after I removed the ports for ElasticSearch, Redis, and MongoDB. I am using HTTP at the moment because HTTPS doesn't work, how should I change the rules? How can I restart the Trains Server on EC2?