Refactor: Rename docker-compose.yml to example and update README
This commit is contained in:
20
docker-compose.example.yml
Normal file
20
docker-compose.example.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
hoerdle:
|
||||
container_name: hoerdle
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
ports:
|
||||
- "3010:3000"
|
||||
environment:
|
||||
- DATABASE_URL=file:/app/data/prod.db
|
||||
- ADMIN_PASSWORD=admin123 # Change this!
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./public/uploads:/app/public/uploads
|
||||
# Initialize DB if needed
|
||||
command: >
|
||||
sh -c "npx prisma db push && node server.js"
|
||||
Reference in New Issue
Block a user