|
|
3 роки тому | |
|---|---|---|
| nginx | 3 роки тому | |
| README.md | 3 роки тому | |
| docker-compose.yml | 3 роки тому | |
| kill_production.sh | 5 роки тому | |
| rebuild_production.sh | 5 роки тому | |
| renew_keys.sh | 3 роки тому |
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 -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
certbotsudo certbot certonly./kill_production.sh./renew_keys.sh./rebuild.sh