Add Docker deployment support for Dokploy

- Add Dockerfile with multi-stage build
- Add docker-compose.yml with Traefik labels
- Add .dockerignore for optimal build context
- Update next.config.ts for standalone output
- Update DEPLOYMENT.md with Dokploy instructions

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Max
2026-01-26 12:38:37 +07:00
parent 415c39ba0a
commit b6a566db6e
5 changed files with 242 additions and 31 deletions

23
docker-compose.yml Normal file
View File

@@ -0,0 +1,23 @@
services:
brachnha-insights:
build:
context: .
dockerfile: Dockerfile
container_name: brachnha-insights
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
networks:
- dokploy-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.brachnha-insights.rule=Host(`your-domain.com`)"
- "traefik.http.routers.brachnha-insights.tls=true"
- "traefik.http.routers.brachnha-insights.tls.certresolver=letsencrypt"
- "traefik.http.services.brachnha-insights.loadbalancer.server.port=3000"
networks:
dokploy-network:
external: true