1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Issue-#852: Add content

This commit is contained in:
Akshay 2022-01-10 08:31:11 +01:00
parent 2c0e36d3f0
commit 2bd36e15a2

View File

@ -7,26 +7,27 @@ The tutorial provides the steps to setup a private docker registry on the server
To implement this use case, 2 domains will be required: To implement this use case, 2 domains will be required:
- example.com: This domain will allow only image pull operations - **example.com**: This domain will allow only image pull operations
- admin.example.com: This domain will allow image push/pull operations only to the authenticated users. - **admin.example.com**: This domain will allow image push/pull operations only to the authenticated users.
_Note: Please change the domain names to your application-specific domain names._ _Note: Please change the domain names to your application-specific domain names._
## Prerequisites ## Prerequisites
1. Running docker environment on the server. 1. Running docker environment on the linux server.
2. 2 domain names is mapped to the same server IP address. 2. 2 domain names is mapped to the same server IP address.
3. SSL certificate 3. SSL certificate
## Generate certificates ## Generate certificates
```bash ```bash
# install certbot: https://certbot.eff.org/ # install certbot: https://certbot.eff.org/
sudo certbot certonly --standalone --cert-name example.com -d example.com sudo certbot certonly --standalone --cert-name example.com -d example.com
sudo certbot certonly --standalone --cert-name admin.example.com -d admin.example.com sudo certbot certonly --standalone --cert-name admin.example.com -d admin.example.com
``` ```
_Note: Do check the access right of the files/directories where certificates are stored. Usually, they are at `/etc/letsencrypt/`._
## Generate password file ## Generate password file
Replace content in `<>` with appropriate content. Replace content in `<>` with appropriate content.