Fixes ytorg/Yotter#87 and removes redundant ports option

This commit is contained in:
Nico769 2020-10-01 19:20:57 +02:00
parent 66a9db86b3
commit a00a34610f
2 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,8 @@ RUN flask db init \
&& flask db migrate \ && flask db migrate \
&& flask db upgrade && flask db upgrade
CMD flask db migrate \ CMD flask db stamp head \
&& flask db migrate \
&& flask db upgrade \ && flask db upgrade \
&& gunicorn -b 0.0.0.0:5000 -w 4 yotter:app && gunicorn -b 0.0.0.0:5000 -w 4 yotter:app

View File

@ -21,8 +21,6 @@ services:
DATABASE_URL: mysql+pymysql://yotter:changeme@mariadb:3306/yotter DATABASE_URL: mysql+pymysql://yotter:changeme@mariadb:3306/yotter
depends_on: depends_on:
- mariadb - mariadb
ports:
- "5000:5000"
volumes: volumes:
- migrations:/usr/src/app/migrations - migrations:/usr/src/app/migrations
- ./yotter-config.json:/usr/src/app/yotter-config.json - ./yotter-config.json:/usr/src/app/yotter-config.json