- Copy monitor.js into the standalone build stage (was missing entirely) - Remove node-fetch require — Node 18 has global fetch built-in - Switch from bind mount (./data) to named volume (dashboard-data) so Docker manages permissions correctly for the nextjs user Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
381 B
YAML
19 lines
381 B
YAML
services:
|
|
admin_dash:
|
|
build: .
|
|
container_name: admin_dash
|
|
restart: always
|
|
ports:
|
|
- "3333:3000"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DB_PATH=/app/data/dashboard.db
|
|
volumes:
|
|
- dashboard-data:/app/data
|
|
- /server_storage:/server_storage:ro
|
|
|
|
volumes:
|
|
dashboard-data:
|