Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
maeda c88848382e :recycle: updating the docker and nginx confs vor 3 Jahren
nginx :recycle: updating the docker and nginx confs vor 3 Jahren
README.md :pencil: updates to README vor 3 Jahren
docker-compose.yml :pencil: updates to README vor 3 Jahren
kill_production.sh :recycle: adjusting defaults vor 5 Jahren
rebuild_production.sh :recycle: adjusting defaults vor 5 Jahren
renew_keys.sh :pencil: updates to README vor 3 Jahren

README.md

Production Container Helpers

Nginx container

Nodejs Application container

Nginx serves the application as a reverse proxy.

host-machine:8001 -> nginx:80 -> nodejs:3001

Usage

Change the configuration files labelled with your domain

Start containers: docker-compose up -d

Stop and remove containers: ./kill_production.sh

Generate new keys with certbot:

-Check using `sudo certbot renew --dry-run`
-Run the commands inside the `generatekeys.sh`
-DO NOT run `generatekeys.sh` as a script
-Run the `./rebuild.sh` script to use the new keys

First Run

  1. install certbot
  2. run sudo certbot certonly
  3. use temporary http challenge mode
  4. make sure ufw exposes port 80
  5. copy over the pem files to your nginx keys directory (see renew_keys.sh)

Renewing your certificates

  1. Stop the container ./kill_production.sh
  2. Renew certs and copy old certs for backup ./renew_keys.sh
  3. Rebuild the container and restart ./rebuild.sh