Commit b274980
Update Docker documentation with production setup and troubleshooting (#3109)
* Update Docker documentation with production setup and troubleshooting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Apply review feedback and integrity fixes to Docker documentation
Review changes: remove unverified comments, rewrite ambiguous danger
admonition and move to troubleshooting, reorder DB tabs (PostgreSQL first),
fix contradictory env vars note, document statically compiled admin panel
vars, comment out yarn build in dev Dockerfile, comment out platform
linux/amd64 on DB services, add upload persistence warning, add secrets
management tip, add JS/TS tabs for database config, improve intro with
Docker rationale and community tools pointer, align community H3 headings.
Integrity fixes: add missing ENCRYPTION_KEY to .env and snippet table,
add API_TOKEN_SALT and TRANSFER_TOKEN_SALT to snippet, remove invalid
URL env var from FAQ, fix deprecated npm --only=production flag, update
GCP Container Registry to Artifact Registry, remove unnecessary nasm
package from Alpine dependencies.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Restructure Docker page: reorder sections, move FAQ, format Next steps
Move Community tools before Troubleshooting for better reading flow.
Move Docker FAQ entries to the global /cms/faq page. Replace Next steps
with the Icon-based "What to do next?" format used in the quick start.
Remove nasm from Alpine dependencies (unnecessary for Sharp 0.33.x).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Remove all Yarn references from Docker documentation
Align with PR #3042 (Remove yarn from main pages). Keep npm only
for Dockerfiles, docker-compose volumes, prerequisites, and prose.
Also remove em dash from env vars note.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Replace 3 stacked callouts with a production checklist component
Use the Checklist/ChecklistItem custom component for the production
tips (database ports, upload persistence, secrets management) instead
of 3 consecutive admonitions.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Replace musl libc jargon with annotation explaining the concept
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix typo and add anchor link in Troubleshooting section
* Fixes following full automated review
* Additional fixes after a second round of self-review
* Improvements from content review
- Add STRAPI_ADMIN_BACKEND_URL ARG to production Dockerfile
- Move commented RUN build to a proper tip callout
- Remove fragile <br/> in tip callout
- Update installation.md intro to match new Docker page scope
- Split dense FAQ paragraph into readable chunks
- Add tip about optimizing production image size with selective COPY
- Clarify npm prerequisite with yarn/pnpm mention
- Improve ENCRYPTION_KEY description in env table
- Add comments on exposed DB ports in dev docker-compose
- Add code example for pool timeout settings in troubleshooting
- Add note about nasm removal from Alpine packages
* Remove highlight markers from HEALTHCHECK and minor callout adjustments
* Add caution about NODE_ENV ordering in production Dockerfile
Warn readers not to set NODE_ENV=production before npm ci,
as npm would skip devDependencies needed for the admin build.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Add tip about --virtual cleanup pattern for dev image
Show how to use apk --virtual .build-deps to reduce image size
in the single-stage development Dockerfile.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Add diagnostic command to Sharp troubleshooting steps
Add a concrete docker exec test command as the first step,
distinguishing missing library vs. glibc/musl mismatch errors.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Specify dist/build/ as Strapi 5 admin bundle path in COPY tip
Update the selective copy examples to mention the correct path
where the Strapi 5 admin bundle lands.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Note that --omit=dev replaces deprecated --only=production
Add inline comment to help users migrating Dockerfiles from
older Strapi guides that used the now-deprecated npm flag.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 16d3441 commit b274980
5 files changed
Lines changed: 637 additions & 280 deletions
File tree
- docusaurus
- docs
- cms
- installation
- snippets
- static
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
153 | 171 | | |
154 | 172 | | |
155 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
0 commit comments