From 99dae32921651fdffd5137f7dea7739651a2ea71 Mon Sep 17 00:00:00 2001 From: nostrdev-com <support@nostrdev.com> Date: Thu, 27 Mar 2025 13:27:18 +0300 Subject: [PATCH] docs: added docker configuration --- server-configuration/staging.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/server-configuration/staging.md b/server-configuration/staging.md index 5065aa8..c63efa6 100644 --- a/server-configuration/staging.md +++ b/server-configuration/staging.md @@ -105,7 +105,7 @@ server { # domain name here server_name staging.cellar.social; - location /api { + location /api/ { proxy_pass http://127.0.0.1:3000/; proxy_set_header Host $http_host; @@ -215,3 +215,22 @@ npm run start # Verify that cellar-api process is running pm2 list ``` + +## Docker + +Under `otto` user: + +```bash +# Install docker +curl -fsSL https://get.docker.com | sudo sh + +# Add api user to the docker group so it can run docker without sudo rights +sudo usermod -aG docker api +``` + +Under `api` user: + +```bash +# Log in to docker group to avoid to log out and log in again +newgrp docker +``` -- 2.43.0