Implement mail service with configuration and settings management
This commit is contained in:
7
Docker/.env
Normal file
7
Docker/.env
Normal file
@@ -0,0 +1,7 @@
|
||||
MAIL_HOST=smtp.example.com
|
||||
MAIL_PORT=587
|
||||
MAIL_USERNAME=your_username
|
||||
MAIL_PASSWORD=your_password
|
||||
MAIL_FROM_ADDRESS=noreply@example.com
|
||||
MAIL_FROM_NAME="FS Einarbeitungen Musterhausen"
|
||||
MAIL_USE_SSL=true
|
||||
@@ -5,6 +5,17 @@ services:
|
||||
image: ghcr.io/troogs/fs-onboarding/server:latest
|
||||
ports:
|
||||
- "8100:56000"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
# Mail Configuration Examples. These override options in appsettings.json.
|
||||
# All values below can also be set via the active .env file or appsettings.json.
|
||||
- Settings__Mail__Host=${MAIL_HOST:-smtp.example.com}
|
||||
- Settings__Mail__Port=${MAIL_PORT:-587}
|
||||
- Settings__Mail__Username=${MAIL_USERNAME:-your_username}
|
||||
- Settings__Mail__Password=${MAIL_PASSWORD:-your_password}
|
||||
- Settings__Mail__FromAddress=${MAIL_FROM_ADDRESS:-no-reply@example.com}
|
||||
- Settings__Mail__UseSsl=${MAIL_USE_SSL:-true}
|
||||
volumes:
|
||||
- /docker/data/fs-onboarding/config:/app/config/
|
||||
- /docker/data/fs-onboarding/data:/app/data/
|
||||
Reference in New Issue
Block a user