Skip to content

Commit ebc7fc9

Browse files
committed
feat(reccoom): add migration service
1 parent 43292ac commit ebc7fc9

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ This project is deployed in accordance to the [DargStack template](https://githu
284284

285285
You cannot access the recommendation service directly.
286286

287+
- ### `reccoom_migration`
288+
289+
You cannot access the recommender's database migration service directly.
290+
287291
- ### `reccoom_postgres`
288292

289293
You can access reccoom's database via `adminer`.

src/development/stack.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,24 @@ services:
567567
volumes:
568568
- ../../../reccoom/:/srv/app/ #DARGSTACK-REMOVE
569569
- ./configurations/postgraphile/jwtES256.key.pub:/run/configurations/jwtES256.key.pub:ro
570+
reccoom_migration:
571+
# You cannot access the recommender's database migration service directly.
572+
command: ["uv", "run", "alembic", "upgrade", "head"]
573+
deploy:
574+
restart_policy:
575+
condition: on-failure
576+
environment:
577+
RECCOOM_POSTGRES_HOST: reccoom_postgres
578+
image: maevsi/reccoom:dev
579+
secrets:
580+
- source: postgres_db
581+
target: /run/environment-variables/RECCOOM_POSTGRES_DATABASE
582+
- source: postgres_user
583+
target: /run/environment-variables/RECCOOM_POSTGRES_USER
584+
- source: postgres_password
585+
target: /run/environment-variables/RECCOOM_POSTGRES_PASSWORD
586+
volumes:
587+
- ../../../reccoom/:/srv/app/ #DARGSTACK-REMOVE
570588
reccoom_postgres:
571589
# You can access reccoom's database via `adminer`.
572590
environment:

0 commit comments

Comments
 (0)