Vercel/docker-compose.yml
Strtus 69094071c8 Add Docker self-hosting configuration for standalone Next.js build.
Include Dockerfile, compose file, dockerignore, and next.config output standalone for server deployment.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-20 17:35:53 +08:00

22 lines
534 B
YAML

services:
photo-blog:
build:
context: .
args:
- NODE_OPTIONS=--max-old-space-size=1536
extra_hosts:
- 'host.docker.internal:host-gateway'
container_name: photo-blog
restart: unless-stopped
ports:
- '127.0.0.1:3000:3000'
env_file:
- .env
extra_hosts:
- 'host.docker.internal:host-gateway'
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:3000/']
interval: 30s
timeout: 10s
retries: 3