From 20a8edd3aa300f5b617e00910dd111fb2196ad89 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Thu, 7 Nov 2024 17:51:56 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(dimail)=20add=20dimail=20as=20a=20con?= =?UTF-8?q?tainer=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Start the Dimail container (in CI and local testing) when starting the app. The pull_policy should have no effect on CI (because it starts from a blank slate) but ensure we test against the most recent version of the chosen tag. --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 338d71a..df185a1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,7 @@ services: - ./data/media:/data/media - ./data/static:/data/static depends_on: + - dimail - postgresql - mailcatcher - redis @@ -168,7 +169,9 @@ services: - kc_postgresql dimail: + entrypoint: /opt/dimail-api/start-dev.sh image: registry.mim-libre.fr/dimail/dimail-api:latest + pull_policy: always environment: DIMAIL_MODE: FAKE DIMAIL_JWT_SECRET: fake_jwt_secret