2f373e683b
- Rewrite README with RetroBlog branding, config table, and two deploy paths (Docker Compose + bare-metal/systemd). - Enable Next.js standalone output for slim runtime images. - Add multi-stage Dockerfile (builds better-sqlite3 natively, runs as non-root, persists /app/data), docker-compose.yml, and .dockerignore. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
19 lines
495 B
YAML
19 lines
495 B
YAML
services:
|
|
retroblog:
|
|
build: .
|
|
image: retroblog:latest
|
|
container_name: retroblog
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
# CHANGE THESE before exposing to the internet.
|
|
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-admin}
|
|
ADMIN_SESSION_SECRET: ${ADMIN_SESSION_SECRET:-change-me-to-a-long-random-string}
|
|
volumes:
|
|
# Persist the SQLite database across container rebuilds.
|
|
- retroblog-data:/app/data
|
|
|
|
volumes:
|
|
retroblog-data:
|