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" ]