From fb5b114ec4d42668aeb4fa0dce30125f1cac04e7 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sun, 18 Feb 2024 13:48:36 +0000 Subject: build: Use the workers image for doing migrations instead of a dedicated container --- docker-compose.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml index 5816e75d..b94ab9da 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -40,11 +40,15 @@ services: migration: build: context: . - target: db + target: workers environment: DATABASE_URL: "file:/data/db.db" volumes: - data:/data + command: + - /bin/sh + - -c + - "cd /app/packages/db && yarn dlx prisma migrate deploy" volumes: redis: -- cgit v1.2.3-70-g09d2