docs: ec2 guide simplify set up

This commit is contained in:
Fu Zi Xiang 2023-12-26 10:42:54 +08:00
parent ac61ba5fa1
commit 04270eb2bf
No known key found for this signature in database
2 changed files with 14 additions and 42 deletions

View File

@ -25,6 +25,7 @@ For example, I create a project that used for localhost development. After creat
![create_credentials.png](../assets/images/create_google_credentials.png) ![create_credentials.png](../assets/images/create_google_credentials.png)
Under 'Application type*', select 'Web application'.
The redirect URI should be `<your host server public ip/hostname>/gotrue/callback`. For example, my host server is `localhost`, so the redirect URI is `http://localhost/gotrue/callback`. The redirect URI should be `<your host server public ip/hostname>/gotrue/callback`. For example, my host server is `localhost`, so the redirect URI is `http://localhost/gotrue/callback`.
![create_client.png](../assets/images/create_google_oauth_client_id.png) ![create_client.png](../assets/images/create_google_oauth_client_id.png)

View File

@ -17,46 +17,13 @@ If you have any questions, please feel free to reach out to us on [Discord](http
- In "Key pair (login)," select an existing key pair or create a new one. - In "Key pair (login)," select an existing key pair or create a new one.
- Review and launch the instance from the Summary panel. - Review and launch the instance from the Summary panel.
## Installing Docker on Your EC2 Ubuntu Instance ## Installing Docker Compose on Your EC2 Ubuntu Instance
1. **Update Packages**: - Follow the official guide for docker installation on Ubuntu: [docker install guide](https://docs.docker.com/engine/install/ubuntu/#installation-methods)
- After it's installed, verify the installation:
```bash ```bash
sudo apt update docker compose version
``` # Docker Compose version v2.21.0
2. **Install Prerequisites**:
```bash
sudo apt install apt-transport-https ca-certificates curl software-properties-common
```
3. **Add Docker's Official GPG Key**:
```bash
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
```
4. **Add Docker Repository**:
```bash
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
```
5. **Update Package Database with Docker Packages**:
```bash
sudo apt update
```
6. **Install Docker**:
```bash
sudo apt install docker-ce
```
7. **Check Docker Status**:
```bash
sudo systemctl status docker
```
8. **Add User to Docker Group** (optional, to run Docker commands without `sudo`):
```bash
sudo usermod -aG docker ${USER}
``` ```
## Installing AppFlowy-Cloud ## Installing AppFlowy-Cloud
@ -81,17 +48,21 @@ If you have any questions, please feel free to reach out to us on [Discord](http
![img.png](../assets/images/google_callback_url.png) ![img.png](../assets/images/google_callback_url.png)
For detailed setup instructions, refer to the Authentication documentation. For detailed setup instructions, refer to the Authentication documentation.
By default, no authentication is needed to sign in.
4. **Start AppFlowy Services**: 4. **Authentication Setup**:
Configure `docker-compose.yml` by removing unneeded services such as `tunnel` (cloudflare tunnel). More details: [here](https://github.com/AppFlowy-IO/AppFlowy-Cloud/blob/main/doc/DEPLOYMENT.md#3-optional-services)
5. **Start AppFlowy Services**:
Launch the services using Docker Compose: Launch the services using Docker Compose:
```bash ```bash
docker compose up -d sudo docker compose up -d
``` ```
5. **Verify Service Status**: 6. **Verify Service Status**:
Check that all services are running: Check that all services are running:
```bash ```bash
docker ps -a sudo docker ps -a
``` ```
## Post Install ## Post Install