Skip to content

Commit

Permalink
Merge pull request #160 from MikiEremiki/develop
Browse files Browse the repository at this point in the history
build: Создание сборки для миграции
  • Loading branch information
MikiEremiki authored Mar 14, 2024
2 parents f42ceb3 + 284d722 commit a536c7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion Dockerfile-migration
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
7 changes: 4 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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" ]
Expand Down

0 comments on commit a536c7c

Please sign in to comment.