MAke SMTP port optional

This commit is contained in:
3wc 2020-10-20 13:02:39 +02:00
parent 492c3c10c9
commit 6abd637efa
3 changed files with 13 additions and 0 deletions

View File

@ -15,3 +15,7 @@ export TRAEFIK_YML_VERSION=v1
#export FILE_PROVIDER_ENABLED=1
## Options for file-provider / Keycloak SSO
#export FILE_PROVIDER_YML_VERSION=v1
## SMTP port 587
#export COMPOSE_FILE="compose.yml:compose.smtp.yml"
#export SMTP_ENABLED=1

7
compose.smtp.yml Normal file
View File

@ -0,0 +1,7 @@
---
version: "3.8"
services:
traefik:
ports:
- "587:587"

View File

@ -28,8 +28,10 @@ entrypoints:
address: ":443"
gitea-ssh:
address: ":2222"
{{ if eq (env "SMTP_ENABLED") "1" }}
smtp-submission:
address: ":587"
{{ end }}
ping:
entryPoint: web