Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

add Docker image mailhog for service SMTP #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,42 @@ services:
volumes:
- db_isolated_data:/var/lib/postgresql/data

backend:
depends_on:
- db
- db_isolated
build:
context: .
target: backend
args:
PYTHON_DEBUG: ${PYTHON_DEBUG}
ports:
- ${FLASK_PORT}:5000
- 10001:10001
restart: always
env_file:
- .env
environment:
DB_PASSWORD_FILE: /run/secrets/db_password
ISOLATED_DB_PASSWORD_FILE: /run/secrets/db_isolated_password
secrets:
- db_password
- db_isolated_password
volumes:
- ./:/app:cached

smtp:
image: mailhog/mailhog
ports:
- 1025:1025
- 8025:8025

secrets:
db_password:
file: ./db_password
db_isolated_password:
file: ./db_isolated_password

volumes:
db_data:
db_isolated_data: