-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (26 loc) · 865 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
27 lines (26 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Note: the image intentionally includes full node_modules (not just the
# Next.js standalone subset) so that `prisma migrate deploy` can run at
# container startup. The Prisma 6.x CLI has a deep transitive dependency
# tree that is not part of the standalone output, and cherry-picking
# individual packages breaks on every Prisma update. Image size (~400 MB
# extra) is an acceptable trade-off for a personal site.
services:
hjemmeside:
build: .
env_file: .env
environment:
DATABASE_URL: "file:/app/data/hjemmeside.db"
ports:
- "3000:3000"
volumes:
- sqlite_data:/app/data
- ./prisma:/app/prisma
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/health"]
interval: 30s
timeout: 5s
start_period: 60s
retries: 3
volumes:
sqlite_data: