yongjhih / docker-parse-server

Provide docker images and docker stack for parse-server npm versions and latest commit
https://hub.docker.com/r/yongjhih/parse-server/
Apache License 2.0
475 stars 166 forks source link

How to configure letsencrypt #81

Open pcg92 opened 7 years ago

pcg92 commented 7 years ago

Hey, I need some help configuring my docker compose to start the dashboard, always im getting this error : Parse Dashboard can only be remotely accessed via HTTPS

PARSE_SERVER_VIRTUAL_HOST=myparse.cloud \ PARSE_SERVER_LETSENCRYPT_HOST=myparse.cloud \ PARSE_SERVER_LETSENCRYPT_EMAIL=myemail@gmail.com \ PARSE_DASHBOARD_LETSENCRYPT_EMAIL=myemail@gmail.com \ PARSE_DASHBOARD_LETSENCRYPT_HOST=myparse.cloud \ PARSE_DASHBOARD_VIRTUAL_HOST=myparse.cloud \ APP_ID=YOUR_APP_ID \ MASTER_KEY=YOUR_MASTER_KEY \ SERVER_URL=https://myparse.cloud/parse \ USER1=USER \ USER1_PASSWORD=PASSWORD \ docker-compose up -d

My enginx redirect myparse.cloud to the port :4040 and /parse to :1337/parse.

I dont know whats the difference between "virtual host and letsencrypt host".

czettnersandor commented 6 years ago

I run it behind an apache reverse proxy, I set up certbot on the host machine. I think it's a better solution because I don't have to deal with letsencrypt inside docker.

pcg92 commented 6 years ago

Can you post some pseudo code of your reverse proxy please?