fic docker

This commit is contained in:
2025-05-28 20:53:58 +03:00
parent b424080e9e
commit 87a9c77ee0
2 changed files with 3 additions and 7 deletions

View File

@@ -12,11 +12,7 @@ services:
- ADMIN_PASSWORD=Initial01!
- SECRET_KEY=Ma_Duc_Dupa_Merele_Lui_Ana
volumes:
- .:/app
- /home/pi/Desktop/digi-server/db:/app/instance # Persistent database storage
- /home/pi/Desktop/digi-server/static:/app/static/uploads # Persistent static files
# Use this command for first-time setup
command: sh -c "python init_db.py && gunicorn -w 4 -b 0.0.0.0:5000 app:app"
# Use this command for subsequent runs to avoid clearing the database
# command: gunicorn -w 4 -b 0.0.0.0:5000 app:app
- /home/pi/Desktop/digi-server/db:/app/instance
- /home/pi/Desktop/digi-server/static:/app/static/uploads
command: gunicorn -w 4 -b 0.0.0.0:5000 app:app
restart: unless-stopped

Binary file not shown.