deploy: Add mailpit to test *sent* emails
All checks were successful
/ test (push) Successful in 52s

This commit is contained in:
lagertonne 2024-11-29 18:21:59 +01:00 committed by jedi
parent f7fda52fd0
commit 94c7e31e4b
4 changed files with 127 additions and 35 deletions

View file

@ -20,7 +20,7 @@ services:
build:
context: ../../core
dockerfile: ../deploy/testing/Dockerfile.backend
command: bash -c 'python manage.py migrate && python /code/server.py'
command: bash -c 'python manage.py migrate && python testdata.py && python /code/server.py'
environment:
- HTTP_HOST=core
- REDIS_HOST=redis
@ -29,13 +29,16 @@ services:
- DB_NAME=system3
- DB_USER=system3
- DB_PASSWORD=system3
- MAIL_DOMAIN=mail:1025
volumes:
- ../../core:/code
- ../testdata.py:/code/testdata.py
ports:
- "8000:8000"
depends_on:
- db
- redis
- mail
frontend:
build:
@ -51,5 +54,19 @@ services:
depends_on:
- core
mail:
image: docker.io/axllent/mailpit
volumes:
- mailpit_data:/data
ports:
- 8025:8025
- 1025:1025
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
volumes:
mariadb_data:
mariadb_data:
mailpit_data: