-
Clone this repository into a directory nginx and go there:
git clone https://github.molgen.mpg.de/donald/labfolder-nginx-example.git nginx
-
Edit
startstop.sh
:- Change
/home/labfolder/nginx
to the absolut path where you are
- Change
-
Build the Docker image:
./startstop.sh build
-
Create the Docker container:
./startstop.sh create
-
Edit
etc_nginx/nginx.conf
:- change every occurrence of
labfolder.molgen.mgp.de
to your server name - change
141\.14\.
to a pattern which matches your network
- change every occurrence of
-
Create a
etc_nginx/dhparams.pem
fileopenssl dhparam -out etc_nginx/dhparams.pem 2048
-
Put your server key file and certificate file in place. The key file should not be encrypted. The crt file should include the chain.
cp /SOMEWHERE/SERVER.crt etc_nginx/ cp /SOMEWHERE/SERVER.key etc_nginx/
-
start the nginx server
./startstop.sh start
./startstop.sh stop # stop the server
./startstop.sh restart # restart - after you changed something in etc_nginx
./startstop.sh show # show images and container
./startstop.sh logs # show server log
./startstop.sh rm # remove container
./startstop.sh rmi # remove image