From abac3388958822e29537ef7e300a3fe4a0923858 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Wed, 19 Jan 2022 19:30:16 +0300 Subject: [PATCH] migrations --- docker-compose.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index f9b338e..b33fb95 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -17,6 +17,12 @@ services: ports: - "5432:5432" + migrations: + image: mathwave/sprint-repo:sprint + command: ./manage.py migrate + depends_on: + - postgres + web: image: mathwave/sprint-repo:sprint restart: always @@ -27,7 +33,7 @@ services: ports: - "${PORT}:${PORT}" depends_on: - - postgres + - migrations - rabbitmq - storage @@ -69,7 +75,7 @@ services: depends_on: - web - rabbitmq - - postgres + - migrations - storage volumes: - /sprint-data/solutions:/usr/src/app/solutions