fic docker
This commit is contained in:
@@ -12,11 +12,7 @@ services:
|
|||||||
- ADMIN_PASSWORD=Initial01!
|
- ADMIN_PASSWORD=Initial01!
|
||||||
- SECRET_KEY=Ma_Duc_Dupa_Merele_Lui_Ana
|
- SECRET_KEY=Ma_Duc_Dupa_Merele_Lui_Ana
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- /home/pi/Desktop/digi-server/db:/app/instance
|
||||||
- /home/pi/Desktop/digi-server/db:/app/instance # Persistent database storage
|
- /home/pi/Desktop/digi-server/static:/app/static/uploads
|
||||||
- /home/pi/Desktop/digi-server/static:/app/static/uploads # Persistent static files
|
command: gunicorn -w 4 -b 0.0.0.0:5000 app:app
|
||||||
# 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
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user