chore: add development docker environment
adds a docker environment for development. can be started using: `docker compose -f docker-compose.dev.yml up --watch --build`
This commit is contained in:
parent
cdc0e81e51
commit
a2a5eee49e
4 changed files with 56 additions and 1 deletions
27
docker-compose.dev.yml
Normal file
27
docker-compose.dev.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
ports:
|
||||
- '3000:3000'
|
||||
environment:
|
||||
- AUTH_SECRET=secret
|
||||
- AUTH_URL=http://localhost:3000
|
||||
- DATABASE_URL=file:/data/db.sqlite
|
||||
env_file:
|
||||
- .env.local
|
||||
volumes:
|
||||
- ./data:/data
|
||||
develop:
|
||||
watch:
|
||||
- action: sync
|
||||
path: ./src
|
||||
target: /app/src
|
||||
ignore:
|
||||
- node_modules/
|
||||
- action: rebuild
|
||||
path: package.json
|
||||
- action: sync+restart
|
||||
path: prisma
|
||||
target: /app/prisma
|
Loading…
Add table
Add a link
Reference in a new issue