Deployment
Deployment Overview
Deployment targets and runtime strategy for ByteBite.
Deployment Overview
ByteBite services are containerized and deployed via Dokploy on BYTEBITE-APP-01. Traefik handles edge routing and TLS; Cloudflare is the DNS provider.
GitHub (main) -> Dokploy -> compose.deploy.yml -> containers -> Traefik -> InternetFull infrastructure documentation: Infrastructure overview.
Environments
| Environment | Status | Guide | Compose |
|---|---|---|---|
| Local dev | Active | Local deployment | compose.yml + compose.dev.yml |
| Staging | Active | Staging deployment | compose.deploy.yml |
| Production | Not deployed | Production deployment | compose.deploy.yml (planned) |
See Environments for a full comparison.
Production-style runtimes
Staging and production use the same deployment compose pattern:
| App | Build | Runtime | Port |
|---|---|---|---|
| API | tsup bundle | node server.js | 3001 |
| Storefront | next build | Next.js standalone | 3000 |
| Dashboard | vite build | nginx static | 8080 |
| Docs | next build | Next.js standalone | 3002 |
Local development uses dev servers via compose.dev.yml.
What the repository provides
- Multi-stage Dockerfiles under
infrastructure/docker/(devandprodtargets) compose.deploy.ymlfor Dokploy (api, storefront, dashboard, docs only)- Bundled DB tooling in the API image (
node db/dist/migrate.js,node db/dist/seed-staging.js) - Local Traefik routing:
infrastructure/traefik/dev/dynamic.yml infrastructure/dokploy/README.mdquick reference
What is managed outside the repository
| Component | Managed by |
|---|---|
| PostgreSQL (staging) | Dokploy |
Traefik (dokploy-traefik) | Dokploy + host-level config |
| TLS / ACME | Traefik (HTTP-01 + DNS-01) |
| Explicit domain routing | Dokploy UI |
| Wildcard tenant routing | compose.deploy.yml Traefik labels |
| Secrets | Dokploy env + host filesystem |
| DNS | Cloudflare |
Related
- Platform deployment — end-to-end deploy flow
- Dokploy — project configuration
- ADR-005 Deployment runtime