diff --git a/docker-compose.yml b/docker-compose.yml index 467b737..61f95f5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/instance/dashboard.db b/instance/dashboard.db index 52f9433..0af34bf 100644 Binary files a/instance/dashboard.db and b/instance/dashboard.db differ