|
|
преди 4 години | |
|---|---|---|
| nginx | преди 4 години | |
| README.md | преди 5 години | |
| docker-compose.yml | преди 4 години | |
| kill_production.sh | преди 4 години | |
| rebuild_production.sh | преди 4 години | |
| renew_keys.sh | преди 4 години |
Nginx container
Nodejs Application container
Nginx serves the application as a reverse proxy.
host-machine:8001 -> nginx:80 -> nodejs:3001
Change the configuration files labelled with your domain
Start containers: docker-compose up
Stop and remove containers: ./kill_production.sh
Generate new keys with certbot:
-Check using `sudo certbot renew --dry-run`
-Run the commands inside the `renew_keys.sh`
-DO NOT run `renew_keys.sh` as a script
-Run the `./rebuild_production.sh` script to use the new keys