(dimail) add dimail as a container dependency

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.
This commit is contained in:
Laurent Bossavit
2024-11-07 17:51:56 +01:00
committed by Marie
parent 0b0b77cead
commit 20a8edd3aa

View File

@@ -35,6 +35,7 @@ services:
- ./data/media:/data/media - ./data/media:/data/media
- ./data/static:/data/static - ./data/static:/data/static
depends_on: depends_on:
- dimail
- postgresql - postgresql
- mailcatcher - mailcatcher
- redis - redis
@@ -168,7 +169,9 @@ services:
- kc_postgresql - kc_postgresql
dimail: dimail:
entrypoint: /opt/dimail-api/start-dev.sh
image: registry.mim-libre.fr/dimail/dimail-api:latest image: registry.mim-libre.fr/dimail/dimail-api:latest
pull_policy: always
environment: environment:
DIMAIL_MODE: FAKE DIMAIL_MODE: FAKE
DIMAIL_JWT_SECRET: fake_jwt_secret DIMAIL_JWT_SECRET: fake_jwt_secret