api added
This commit is contained in:
@@ -5,17 +5,17 @@ services:
|
||||
|
||||
image: digi-server:latest
|
||||
ports:
|
||||
- "7100:5000"
|
||||
- "80:5000"
|
||||
environment:
|
||||
- FLASK_APP=app.py
|
||||
- FLASK_RUN_HOST=0.0.0.0
|
||||
- ADMIN_USER=admin
|
||||
- ADMIN_PASSWORD=Matei
|
||||
- ADMIN_PASSWORD=Initial01!
|
||||
- SECRET_KEY=Ma_Duc_Dupa_Merele_Lui_Ana
|
||||
volumes:
|
||||
- .:/app
|
||||
- /home/ske087/digi-server/db:/app/instance
|
||||
- /home/ske087/digi-server/static:/app/static/uploads
|
||||
- /home/pi/Desktop/digi-server/db:/app/instance
|
||||
- /home/pi/Desktop/digi-server/static:/app/static/uploads
|
||||
# when setting allready exist and data are setted and is performed an update use second line of command
|
||||
command: sh -c "python clear_db.py && python init_db.py && gunicorn -w 4 -b 0.0.0.0:5000 app:app"
|
||||
#command: sh -c "python init_db.py && gunicorn -w 4 -b 0.0.0.0:5000 app:app"
|
||||
#command: sh -c "python clear_db.py && python init_db.py && gunicorn -w 4 -b 0.0.0.0:5000 app:app"
|
||||
command: sh -c "python init_db.py && gunicorn -w 4 -b 0.0.0.0:5000 app:app"
|
||||
Reference in New Issue
Block a user