... | ... | @@ -80,3 +80,27 @@ Then in your production.yml file, uncomment the dedicated GPU environment variab |
|
|
To make use of more gpus, simply add more workers following the same configuration.
|
|
|
Then rebuild & run the containers.
|
|
|
|
|
|
### using SSL
|
|
|
|
|
|
Install certbot
|
|
|
$ sudo apt-get install certbot
|
|
|
|
|
|
Generate certificates (change the domain names accordingly)
|
|
|
$ certbot certonly -d escriptorium.fr -d www.escriptorium.fr --standalone --preferred-challenges http
|
|
|
|
|
|
In production.yml, update the nginx configuration to use ssl.conf, uncomment the 443 port and mount the directory countaining the certificates:
|
|
|
```
|
|
|
nginx:
|
|
|
restart: always
|
|
|
build:
|
|
|
args:
|
|
|
- NGINX_CONF=ssl.conf
|
|
|
ports:
|
|
|
- "80:80"
|
|
|
- "443:443"
|
|
|
volumes:
|
|
|
- /etc/letsencrypt:/etc/letsencrypt
|
|
|
```
|
|
|
|
|
|
Copy and update nginx/ssl_certificates.conf to match your mounted volume.
|
|
|
|