Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Grocy-Docker on AWS #95

Closed
verginer opened this issue May 16, 2020 · 3 comments
Closed

Running Grocy-Docker on AWS #95

verginer opened this issue May 16, 2020 · 3 comments

Comments

@verginer
Copy link

verginer commented May 16, 2020

If anyone wants/attempts to run grocy on AWS as a docker image this is an important point.

For the docker port to be visible outside the EC2 instance, beyond setting up the correct Security Groups (i.e., HTTP and HTTPS), it is necessary to change the "localhost" ip to 0.0.0.0.

Change in docker-compose.yml this

    ports:
      - '127.0.0.1:80:8080'
      - '127.0.0.1:443:8443'

to this

    ports:
      - '0.0.0.0:80:8080'
      - '0.0.0.0:443:8443'

Hope this helps someone :)

IMPORTANT UPDATE: Note that by doing this you expose your instance to the public internet, where anyone can access it. Be sure to follow best practice. e.g. set strong passwords, be aware that by using HTTP your traffic is unencrypted.

@jayaddison
Copy link
Contributor

Thanks @verginer!

Good news: this part of the process is now documented in a grocy setup tutorial.

@jayaddison
Copy link
Contributor

@verginer I think we should suggest only opening port 443 when making the application public - what do you reckon? See #97 for some other notes. HTTPS support during application setup from this repository & docker image isn't great at the moment.

@verginer
Copy link
Author

Thanks @jayaddison for including this in the tutorial :).
I agree that HTTPS should be applied everywhere especially when on the open internet.

To avoid having warnings of self signed certificates it might be necessary to use letsencrypt to get an accepted certificate.

I am not an expert on this matter, but I will experiment with it.
This post might be a first step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants