Skip to content

Commit 7518a9e

Browse files
committed
Adjust deploying
1 parent 9e3ae4e commit 7518a9e

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

docs/deploying.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,17 @@ Copy `compose.yaml` to the server:
4141
scp compose.yaml youruser@yourserver:
4242
```
4343

44-
## 🚀 4. Launch your Stack
44+
### 4. Secrets
45+
46+
Docker needs your secrets (passwords, keys, etc.). There are a few options:
47+
48+
1. Write secrets to a `.env` file on the server (convenient but not very
49+
secure).
50+
1. Set env vars in the the `docker compose` command (be sure to disable shell
51+
history).
52+
1. Use environment injection in your CI/CD.
53+
54+
## 🚀 5. Launch your Stack
4555

4656
SSH into your server and bring up the stack:
4757

@@ -50,12 +60,6 @@ docker compose pull
5060
docker compose up -d
5161
```
5262

53-
Docker compose needs secrets, so you have a few options:
54-
55-
1. Write secrets to a `.env` file in plain-text (be sure to `chmod 600 .env`).
56-
1. Set env vars in the docker compose command
57-
1. Alternatively, use environment injection in your CI/CD.
58-
5963
---
6064

6165
That’s it — your backend is live.

0 commit comments

Comments
 (0)