mirror of
https://github.com/arthur-pbty/form.git
synced 2026-06-03 15:07:25 +02:00
20 lines
540 B
YAML
20 lines
540 B
YAML
services:
|
|
formcraft:
|
|
image: node:20-alpine
|
|
container_name: formcraft
|
|
working_dir: /app
|
|
volumes:
|
|
- .:/app
|
|
- node_modules:/app/node_modules
|
|
- formcraft_data:/app/data
|
|
ports:
|
|
- "3008:3000"
|
|
environment:
|
|
- DATABASE_URL=file:./data/dev.db
|
|
command: sh -c "apk add --no-cache openssl && npm install --include=dev && npx prisma generate && npx prisma migrate deploy && npm run build && NODE_ENV=production npm start"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
node_modules:
|
|
formcraft_data:
|