feat: docker and compose

This commit is contained in:
Julien Froidefond
2025-12-01 08:14:04 +01:00
parent 34874aae86
commit 86236aeb04
4 changed files with 104 additions and 0 deletions

20
docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET:-dummy-secret-for-build-only}
- NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:4000}
- DATABASE_URL=${DATABASE_URL:-file:./prisma/dev.db}
ports:
- "4000:3000"
volumes:
- ./prisma:/app/prisma
environment:
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
- NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:4000}
- DATABASE_URL=${DATABASE_URL:-file:./prisma/dev.db}
env_file:
- .env