Browse Source

Allow turning on SSL in Docker

develop
Adam Novak 2 years ago
committed by Mike van Rossum
parent
commit
702b55212c
4 changed files with 9 additions and 2 deletions
  1. +2
    -1
      .env
  2. +1
    -0
      docker-compose.yml
  3. +3
    -0
      docker-entrypoint.sh
  4. +3
    -1
      docs/installation/installing_gekko_using_docker.md

+ 2
- 1
.env View File

@ -1,2 +1,3 @@
HOST=localhost
PORT=3000
PORT=3000
USE_SSL=0

+ 1
- 0
docker-compose.yml View File

@ -11,6 +11,7 @@ services:
environment:
- HOST
- PORT
- USE_SSL
ports: # you can comment this out when using the nginx frontend
- "${PORT}:${PORT}"
## optionally set nginx vars if you wish to frontend it with nginx

+ 3
- 0
docker-entrypoint.sh View File

@ -3,4 +3,7 @@
sed -i 's/127.0.0.1/0.0.0.0/g' /usr/src/app/web/vue/dist/UIconfig.js
sed -i 's/localhost/'${HOST}'/g' /usr/src/app/web/vue/dist/UIconfig.js
sed -i 's/3000/'${PORT}'/g' /usr/src/app/web/vue/dist/UIconfig.js
if [[ "${USE_SSL:-0}" == "1" ]] ; then
sed -i 's/ssl: false/ssl: true/g' /usr/src/app/web/vue/dist/UIconfig.js
fi
exec node gekko "$@"

+ 3
- 1
docs/installation/installing_gekko_using_docker.md View File

@ -20,4 +20,6 @@ $ HOST=mydomain.com PORT=3001 docker-compose up -d
You can now find your gekko instance running on `mydomain.com:3001`.
To see logs: `docker logs -f gekko_gekko_1`. View which dockers are running by executing `docker ps`.
If running behind an SSL-terminating proxy, make sure to set `USE_SSL=1` to tell the Gekko to use the HTTPS and WSS protocols instead of the default HTTP and WS protocols.
To see logs: `docker logs -f gekko_gekko_1`. View which dockers are running by executing `docker ps`.

Loading…
Cancel
Save