From 561f91949d3e5255c0f70ee18131a36fc9ca5e2c Mon Sep 17 00:00:00 2001
From: Dragory <2606411+Dragory@users.noreply.github.com>
Date: Sun, 7 Aug 2022 13:52:04 +0300
Subject: [PATCH] docs: fixes/tweaks to docker docs

---
 DEVELOPMENT.md |  6 +++---
 PRODUCTION.md  | 12 ++++++------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md
index 90f2c2ca..62e3b66a 100644
--- a/DEVELOPMENT.md
+++ b/DEVELOPMENT.md
@@ -17,7 +17,7 @@ Below you can find instructions for setting up the environment and getting start
 1. Install Docker
 2. Make a copy of `.env.example` called `.env`
 3. Fill in the missing values in `.env`
-4. Run `docker-compose up` to start the development environment
+4. Run `docker compose -f docker-compose.development.yml up` to start the development environment
 5. In VSCode: Install the `Remote - SSH` plugin
 6. In VSCode: Run `Remote-SSH: Connect to Host...`
     * As the address, use `ubuntu@127.0.0.1:3002` (where `3002` matches `DOCKER_DEV_SSH_PORT` in `.env`)
@@ -28,7 +28,7 @@ Below you can find instructions for setting up the environment and getting start
 1. Install Docker
 2. Make a copy of `.env.example` called `.env`
 3. Fill in the missing values in `.env`
-4. Run `docker-compose up` to start the development environment
+4. Run `docker compose -f docker-compose.development.yml up` to start the development environment
 5. Choose `Connect via SSH` and create a new connection:
     * Username: `ubuntu`
     * Host: `127.0.0.1`
@@ -43,7 +43,7 @@ Below you can find instructions for setting up the environment and getting start
 1. Install Docker
 2. Make a copy of `.env.example` called `.env`
 3. Fill in the missing values in `.env`
-4. Run `docker-compose up` to start the development environment
+4. Run `docker compose -f docker-compose.development.yml up` to start the development environment
 5. Use the following credentials for connecting with your IDE:
     * Host: `127.0.0.1`
     * Port: `3002` (matching the `DOCKER_DEV_SSH_PORT` value in `.env`)
diff --git a/PRODUCTION.md b/PRODUCTION.md
index a45bf50d..2a9b1baa 100644
--- a/PRODUCTION.md
+++ b/PRODUCTION.md
@@ -5,7 +5,7 @@ Zeppelin's production environment - that is, the **bot, API, and dashboard** - u
 1. Install Docker on the machine running the bot
 2. Make a copy of `.env.example` called `.env`
 3. Fill in the missing values in `.env`
-4. Run `docker-compose -f docker-compose.production.yml -d up`
+4. Run `docker compose -f docker-compose.production.yml up -d`
 
 ## Updating the bot
 
@@ -13,15 +13,15 @@ Zeppelin's production environment - that is, the **bot, API, and dashboard** - u
 If you've downloaded the bot's files by cloning the git repository, you can use `update.sh` to update the bot.
 
 ### Manual instructions
-1. Shut the bot down: `docker-compose -f docker-compose.production.yml down`
+1. Shut the bot down: `docker compose -f docker-compose.production.yml stop`
 2. Update the files (e.g. `git pull`)
-3. Start the bot again: `docker-compose -f docker-compose.production.yml -d up`
+3. Start the bot again: `docker compose -f docker-compose.production.yml start`
 
 ### Ephemeral hotfixes
 If you need to make a hotfix to the bot's source files directly on the server:
-1. Shut the bot down: `docker-compose -f docker-compose.production.yml down`
+1. Shut the bot down: `docker compose -f docker-compose.production.yml stop`
 2. Make your edits
-3. Start the bot again: `docker-compose -f docker-compose.production.yml -d up`
+3. Start the bot again: `docker compose -f docker-compose.production.yml start`
 
 Note that you can't edit the compiled files directly as they're overwritten when the environment starts.
 Only edit files in `/backend/src`, `/shared/src`, and `/dashboard/src`.
@@ -29,4 +29,4 @@ Only edit files in `/backend/src`, `/shared/src`, and `/dashboard/src`.
 Make sure to revert any hotfixes before updating the bot normally.
 
 ## View logs
-To view real-time logs, run `docker-compose -f docker-compose.production.yml -t logs`
+To view real-time logs, run `docker compose -f docker-compose.production.yml -t -f logs`