-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Mi/2961/docker compose #3027
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for brilliant-pasca-3e80ec ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
### Domain and subdomains setup | ||
|
||
We will map the [Open Payments resource server](/integration/services/backend-service#open-payments) to your domain, and the [ILP Connector](/integration/services/backend-service#interledger-connector), [Open Payments auth server](/integration/services/auth-service), and [Admin UI](/integration/services/frontend-service) to subdomains. Using the DNS host of your choice, set up your domain and subdomains according to the following convention: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(recommended) convention
|
||
```sh | ||
|
||
server_name admin.myrafiki.com; | ||
server { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
server { | |
server { |
| service | URL | example | | ||
| ----------------------------- | ------------ | ------------------ | | ||
| Open Payments resource server | DOMAIN | myrafiki.com | | ||
| ILP Connector | ilp.DOMAIN | ilp.myrafiki.com | | ||
| Open Payments auth server | auth.DOMAIN | auth.myrafiki.com | | ||
| Admin UI | admin.DOMAIN | admin.myrafiki.com | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we outline briefly what each of these exposed ports do, or do you think this is enough?
|
||
### Open Payments Resource Server (`backend` package) | ||
|
||
Using the editor of your choice, save the following file as `oprs.config` in the `/etc/nginx/sites-available` directory on your VM: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oprs.config
maybe can be more descriptive? also maybe can match the auth
file name as well
|
||
### VM specifications | ||
|
||
This example deployment uses the `e2-standard-2` VM on <LinkOut href='https://cloud.google.com/compute/docs/general-purpose-machines#e2_machine_types'>Google Cloud Platform</LinkOut> with the following specifications: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at this, maybe instead of specifying a specific cloud provider we can say something generic like, "a general-purpose VM with 4GB memory (I think 4GB should be enough actually) and 2 vCPUs should be capable of running the Rafiki software via docker."
:::danger[Update compose file] | ||
You must change the values enclosed within curly brackets {} in the following compose file. | ||
::: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it's obvious it needs changing? or good to have this warning?
- Your Rafiki instance must be set up for at least one asset before wallet addresses can be created as each wallet address must have an asset assigned to it. | ||
- Wallet address URLs are treated as case-insensitive, meaning that both lowercase and uppercase variations of the same address will be recognized as identical. | ||
::: | ||
::: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
::: | |
::: |
sudo ln -s /etc/nginx/sites-available/admin.conf /etc/nginx/sites-enabled/admin.conf | ||
|
||
sudo ln -s /etc/nginx/sites-available/open_payments_auth_server.conf /etc/nginx/sites-enabled/auth.conf | ||
|
||
sudo ln -s /etc/nginx/sites-available/ilp.conf /etc/nginx/sites-enabled/ilp.conf | ||
|
||
sudo ln -s /etc/nginx/sites-available/open_payments_resource_server.conf /etc/nginx/sites-enabled/oprs.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should match the file names from above
@@ -160,6 +160,22 @@ The first retry is after 10 seconds. Additional retries occur after 20 more seco | |||
|
|||
#### Incoming payment created | |||
|
|||
<details> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this change be here?
| auth | auth.DOMAIN | auth.myrafiki.com | | ||
| connector | connector.DOMAIN | connector.myrafiki.com | | ||
| ilp | ilp.DOMAIN | ilp.myrafiki.com | | ||
### Install Docker Engine and Docker Compose plugin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can just link to the docker engine install page? since it'll differ per distro
https://docs.docker.com/engine/install/
Checklist
fixes #2961
user-docs
label (if necessary)