ci: apply migrations before starting staging containers
This commit is contained in:
1 parent
c22d484c11
commit
a80cb9fea7
4 files changed
+38
-1
No files matched your search
@@ -1,4 +1,13 @@
|
||||
services:
|
||||
migrate:
|
||||
container_name: it-smi_${BRANCH}_migrate
|
||||
image: git.jt4d.ru/public/it-smi/api:${BRANCH}-migrate
|
||||
environment:
|
||||
DATABASE_URL: postgres://${POSTGRES_USER:-}:${POSTGRES_PASSWORD:-}@${POSTGRES_HOST:-}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-}
|
||||
restart: 'no'
|
||||
networks:
|
||||
- 'net'
|
||||
|
||||
api:
|
||||
container_name: it-smi_${BRANCH}_api
|
||||
image: git.jt4d.ru/public/it-smi/api:${BRANCH}
|
||||
|
||||
Reference in new issue
Block a user