Fixes ytorg/Yotter#87 and removes redundant ports option
This commit is contained in:
parent
66a9db86b3
commit
a00a34610f
@ -29,7 +29,8 @@ RUN flask db init \
|
||||
&& flask db migrate \
|
||||
&& flask db upgrade
|
||||
|
||||
CMD flask db migrate \
|
||||
CMD flask db stamp head \
|
||||
&& flask db migrate \
|
||||
&& flask db upgrade \
|
||||
&& gunicorn -b 0.0.0.0:5000 -w 4 yotter:app
|
||||
|
||||
|
@ -21,8 +21,6 @@ services:
|
||||
DATABASE_URL: mysql+pymysql://yotter:changeme@mariadb:3306/yotter
|
||||
depends_on:
|
||||
- mariadb
|
||||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- migrations:/usr/src/app/migrations
|
||||
- ./yotter-config.json:/usr/src/app/yotter-config.json
|
||||
|
Reference in New Issue
Block a user