migrations

This commit is contained in:
Egor Matveev 2022-01-19 19:30:16 +03:00
parent 97a6fee997
commit abac338895

View File

@ -17,6 +17,12 @@ services:
ports: ports:
- "5432:5432" - "5432:5432"
migrations:
image: mathwave/sprint-repo:sprint
command: ./manage.py migrate
depends_on:
- postgres
web: web:
image: mathwave/sprint-repo:sprint image: mathwave/sprint-repo:sprint
restart: always restart: always
@ -27,7 +33,7 @@ services:
ports: ports:
- "${PORT}:${PORT}" - "${PORT}:${PORT}"
depends_on: depends_on:
- postgres - migrations
- rabbitmq - rabbitmq
- storage - storage
@ -69,7 +75,7 @@ services:
depends_on: depends_on:
- web - web
- rabbitmq - rabbitmq
- postgres - migrations
- storage - storage
volumes: volumes:
- /sprint-data/solutions:/usr/src/app/solutions - /sprint-data/solutions:/usr/src/app/solutions