feat: cleanup docker setup

- Add .dockerignore
- Replace .env with .env.example
- Add migrations service
- Cleanup Dockerfile: simpler setup, simpler copy, no migrations inside the image
- Update README to match new instruction
This commit is contained in:
Nour 2024-01-23 17:43:02 +00:00
commit 1d4251c23e
No known key found for this signature in database
GPG key ID: 9744560DE7DA09AE
6 changed files with 90 additions and 46 deletions

11
.env.example Normal file
View file

@ -0,0 +1,11 @@
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
# Enable to use different location for dev db file
# DATABASE_URL="file:./dev.db"
# Add your admin Nostr npub
# ADMIN_NPUBS=npub1q2s369...