feat: add complete Docker setup for markdown editor

Create Docker configuration files and setup commands

#VERCEL_SKIP

Co-authored-by: Anders Lehmann Pier <3219386+AndersPier@users.noreply.github.com>
This commit is contained in:
v0
2025-06-19 21:46:26 +00:00
parent 36e768b38d
commit efdedf1a34
81 changed files with 8234 additions and 0 deletions

48
docker-compose.yml Normal file
View File

@@ -0,0 +1,48 @@
version: '3.8'
services:
markdown-editor:
build:
context: .
dockerfile: Dockerfile
container_name: markdown-editor-app
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_TELEMETRY_DISABLED=1
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- markdown-editor-network
# Optional: Add a reverse proxy (nginx) for production
nginx:
image: nginx:alpine
container_name: markdown-editor-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl:ro
depends_on:
- markdown-editor
restart: unless-stopped
networks:
- markdown-editor-network
profiles:
- production
networks:
markdown-editor-network:
driver: bridge
volumes:
markdown-editor-data:
driver: local