feat: docker and compose
This commit is contained in:
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user