File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,17 @@ Copy `compose.yaml` to the server:
4141scp 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
4656SSH into your server and bring up the stack:
4757
@@ -50,12 +60,6 @@ docker compose pull
5060docker 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
6165That’s it — your backend is live.
You can’t perform that action at this time.
0 commit comments