From d2a957e5ff861c89b58e00466aad5eba51731d57 Mon Sep 17 00:00:00 2001 From: Fu Zi Xiang Date: Wed, 27 Dec 2023 15:15:25 +0800 Subject: [PATCH] feat: improve ec2 docs --- doc/EC2_SELF_HOST_GUIDE.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/doc/EC2_SELF_HOST_GUIDE.md b/doc/EC2_SELF_HOST_GUIDE.md index ce8697a7..69d8abb5 100644 --- a/doc/EC2_SELF_HOST_GUIDE.md +++ b/doc/EC2_SELF_HOST_GUIDE.md @@ -19,13 +19,25 @@ If you have any questions, please feel free to reach out to us on [Discord](http ## Installing Docker Compose on Your EC2 Ubuntu Instance -- 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: +1. **Follow the official guide for docker installation on Ubuntu: [docker install guide](https://docs.docker.com/engine/install/ubuntu/#installation-methods)** + +2. **After it's installed, verify the installation** ```bash docker compose version # Docker Compose version v2.21.0 ``` +3. **Ensure that the docker daemon is running** + ```bash + sudo systemctl enable --now docker + ``` + +4. **Add current user to Docker Group (optional, to run Docker commands without `sudo`)** + ```bash + sudo usermod -aG docker ${USER} + sudo systemctl restart docker + ``` + ## Installing AppFlowy-Cloud 1. **Clone Repository**: @@ -56,13 +68,13 @@ If you have any questions, please feel free to reach out to us on [Discord](http 5. **Start AppFlowy Services**: Launch the services using Docker Compose: ```bash - sudo docker compose up -d + docker compose up -d ``` 6. **Verify Service Status**: Check that all services are running: ```bash - sudo docker ps -a + docker ps -a ``` ## Post Install