From a00a34610f6afca1f2fad242434f2a5ae8927075 Mon Sep 17 00:00:00 2001 From: Nico769 Date: Thu, 1 Oct 2020 19:20:57 +0200 Subject: [PATCH] Fixes ytorg/Yotter#87 and removes redundant ports option --- Dockerfile | 3 ++- docker-compose.yml | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) 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