feat: Dockerfile, deploy configs en Caddy-block voor ops.jp-visser.nl
- Multi-stage Dockerfile (deps → builder → runner) met next standalone output - .dockerignore zodat node_modules en .next niet mee worden gebundeld - next.config.ts: output standalone ingeschakeld voor minimale image - deploy/docker-compose.ops-dashboard.yml: service-fragment voor /srv/scrum4me/compose - deploy/caddy/Caddyfile.ops-dashboard: reverse_proxy block voor Caddy - deploy/ops-dashboard.env.example: env-template voor /srv/ops/ops-dashboard.env Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
be05724de0
commit
ad9cde6fb7
6 changed files with 69 additions and 1 deletions
7
deploy/caddy/Caddyfile.ops-dashboard
Normal file
7
deploy/caddy/Caddyfile.ops-dashboard
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Block to add to /srv/scrum4me/caddy/Caddyfile
|
||||
# After adding, restart Caddy (not reload — see deploy notes):
|
||||
# docker compose restart caddy
|
||||
|
||||
ops.jp-visser.nl {
|
||||
reverse_proxy 172.18.0.1:3001
|
||||
}
|
||||
19
deploy/docker-compose.ops-dashboard.yml
Normal file
19
deploy/docker-compose.ops-dashboard.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Fragment to merge into /srv/scrum4me/compose/docker-compose.yml
|
||||
# Add the ops-dashboard service under the `services:` key.
|
||||
#
|
||||
# Build the image first:
|
||||
# docker build -t ops-dashboard /srv/ops/ops-dashboard
|
||||
#
|
||||
# Then bring the service up:
|
||||
# docker compose -f /srv/scrum4me/compose/docker-compose.yml up -d ops-dashboard
|
||||
|
||||
services:
|
||||
ops-dashboard:
|
||||
build:
|
||||
context: /srv/ops/ops-dashboard
|
||||
env_file: /srv/ops/ops-dashboard.env
|
||||
ports:
|
||||
- "127.0.0.1:3001:3000"
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- postgres
|
||||
5
deploy/ops-dashboard.env.example
Normal file
5
deploy/ops-dashboard.env.example
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Copy to /srv/ops/ops-dashboard.env on the server and fill in real values.
|
||||
DATABASE_URL="postgresql://USER:PASSWORD@postgres:5432/ops_dashboard"
|
||||
SEED_USER_EMAIL="admin@example.com"
|
||||
SEED_USER_PASSWORD="changeme"
|
||||
SESSION_SECRET="replace-with-a-long-random-string"
|
||||
Loading…
Add table
Add a link
Reference in a new issue