Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
labfolder-nginx-example/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
46 lines (27 sloc)
1.28 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example nginx Docker installation for Labfolder | |
## How to use: | |
* 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 | |
* 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 | |
* Create a `etc_nginx/dhparams.pem` file | |
openssl 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 | |
## what else ? | |
./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 |