diff --git a/Dockerfile b/Dockerfile index 65117c7..2896a5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 8650ec0..8eeb821 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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