From 284d72211fd74262b7e53b69aed067de3f7fcc3a Mon Sep 17 00:00:00 2001 From: MikiEremiki Date: Fri, 15 Mar 2024 02:42:29 +0300 Subject: [PATCH] =?UTF-8?q?build:=20=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B8=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile-migration | 1 - docker-compose.yaml | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile-migration b/Dockerfile-migration index c4ceb1d..49fdbbd 100644 --- a/Dockerfile-migration +++ b/Dockerfile-migration @@ -8,5 +8,4 @@ WORKDIR /app RUN --mount=type=bind,source=requirements-migration.txt,target=requirements-migration.txt \ python -m pip install -r requirements-migration.txt -COPY /config . COPY /src/db . \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 811c942..da42d08 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -46,7 +46,8 @@ services: container_name: migration build: context: . - image: baby_domik_migration + dockerfile: Dockerfile-migration + image: mikieremiki/baby_domik_migration restart: no depends_on: postgres: @@ -59,8 +60,8 @@ services: environment: - CONFIG_PATH=${CONFIG_PATH:-config/} working_dir: /app - command: [ "alembic", "-c", "config/alembic.ini", "upgrade", "+1" ] -# command: [ "alembic", "-c", "config/alembic.ini", "downgrade", "-1" ] + # command: [ "alembic", "-c", "config/alembic.ini", "upgrade", "+1" ] + # command: [ "alembic", "-c", "config/alembic.ini", "downgrade", "-1" ] pgadmin: profiles: [ "pgadmin" ]