Merge pull request #90 from Nico769/dev-indep

Fixes ytorg/Yotter#87 and removes redundant ports option
This commit is contained in:
FireMasterK 2020-10-01 23:45:18 +05:30 committed by GitHub
commit 5fcbd167b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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