mirror of
https://github.com/abusoww/tuxmate.git
synced 2026-04-17 21:53:12 +02:00
- Add multi-stage Dockerfile with Node.js 20 Alpine - Add docker-compose.yml for easy deployment - Add .dockerignore to optimize build context - Enable standalone output in next.config.ts - Add Docker deployment documentation to README - Move Docker support from planned to completed in roadmap The Dockerfile uses a three-stage build process: 1. deps: Install production dependencies 2. builder: Build Next.js application 3. runner: Minimal production runtime with non-root user Includes health checks, restart policy, and security best practices.
22 lines
456 B
YAML
22 lines
456 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
tuxmate:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: tuxmate:latest
|
|
container_name: tuxmate
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=3000
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|