-
-
Notifications
You must be signed in to change notification settings - Fork 587
Claude/instatic dokploy deploy keoy18 #274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # compose.dokploy.yml | ||
| # Single-file Docker Compose for deploying Instatic on Dokploy (SQLite mode). | ||
| # | ||
| # Dokploy's Compose app type wants one compose file, but the VPS guide | ||
| # (docs/deployment/vps.md) splits SQLite setup across two files | ||
| # (compose.prod.yml + compose.sqlite.yml). This file merges those into one | ||
| # so it can be pointed at directly from the Dokploy UI. | ||
| # | ||
| # For Postgres instead of SQLite, follow docs/deployment/vps.md directly | ||
| # rather than this file. | ||
|
|
||
| name: instatic-prod | ||
|
|
||
| services: | ||
| app: | ||
| image: ${INSTATIC_IMAGE:-ghcr.io/corebunch/instatic:latest} | ||
| restart: unless-stopped | ||
| ports: | ||
| - "${HOST_PORT:-3001}:3001" | ||
|
Comment on lines
+18
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Because the service is already attached to Useful? React with 👍 / 👎. |
||
| environment: | ||
| PORT: "3001" | ||
| DATABASE_URL: sqlite:/app/data/cms.db | ||
| UPLOADS_DIR: /app/uploads | ||
| STATIC_DIR: /app/dist | ||
| INSTATIC_SECRET_KEY: ${INSTATIC_SECRET_KEY:-} | ||
| PUBLIC_ORIGIN: ${PUBLIC_ORIGIN:-} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When this compose file is launched through Dokploy's HTTPS/Traefik route without manually defining Useful? React with 👍 / 👎. |
||
| TRUSTED_PROXY_CIDRS: ${TRUSTED_PROXY_CIDRS:-} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Under the intended Traefik-routed deployment, leaving Useful? React with 👍 / 👎. |
||
| volumes: | ||
| - uploads:/app/uploads | ||
| - data:/app/data | ||
| healthcheck: | ||
| test: ["CMD", "bun", "run", "server/healthcheck.ts"] | ||
| interval: 30s | ||
| timeout: 5s | ||
| start_period: 20s | ||
| retries: 3 | ||
| networks: | ||
| - dokploy-network | ||
|
|
||
| volumes: | ||
| data: | ||
| uploads: | ||
|
|
||
| networks: | ||
| dokploy-network: | ||
| external: true | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this deployment method to the deployment documentation, including the Dokploy setup steps and required
PUBLIC_ORIGIN/secret configuration. The new file is not referenced anywhere underdocs/deployment/, leaving operators with only a compose file whose optional-looking defaults are insufficient for the normal proxied HTTPS deployment; repository rules explicitly require documentation to be updated when deployment configuration changes.AGENTS.md reference: AGENTS.md:L292-L293
Useful? React with 👍 / 👎.