862ba8d9d7
- Add .dockerignore to prevent host node_modules (GLIBC 2.38) from overwriting container-built binaries (GLIBC 2.36), fixing better-sqlite3 ERR_DLOPEN_FAILED crash - Bind port to 0.0.0.0 for LAN access Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
543 B
YAML
25 lines
543 B
YAML
services:
|
|
oikos:
|
|
build: .
|
|
container_name: oikos
|
|
restart: unless-stopped
|
|
ports:
|
|
- "0.0.0.0:3000:3000"
|
|
volumes:
|
|
- oikos_data:/data
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DB_PATH=/data/oikos.db
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', r => process.exit(r.statusCode === 200 ? 0 : 1))"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
oikos_data:
|
|
driver: local
|