mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-11-10 08:55:39 +08:00
30 lines
No EOL
785 B
YAML
30 lines
No EOL
785 B
YAML
version: '3.7'
|
|
services:
|
|
postfix_test_587:
|
|
hostname: "postfix"
|
|
image: "boky/postfix"
|
|
restart: always
|
|
healthcheck:
|
|
test: [ "CMD", "sh", "-c", "netstat -an | fgrep 587 | fgrep -q LISTEN" ]
|
|
interval: 10s
|
|
timeout: 5s
|
|
start_period: 10s
|
|
retries: 2
|
|
environment:
|
|
FORCE_COLOR: "1"
|
|
ALLOWED_SENDER_DOMAINS: "example.org"
|
|
POSTFIX_mynetworks: "1.1.1.1/32"
|
|
POSTFIX_smtpd_end_of_data_restrictions: "check_client_access static:discard"
|
|
LOG_FORMAT: "json"
|
|
tests:
|
|
image: "boky/postfix-integration-test"
|
|
restart: "no"
|
|
volumes:
|
|
- ".:/code"
|
|
build:
|
|
context: ../tester
|
|
command: "/"
|
|
environment:
|
|
FROM: "demo@example.org"
|
|
TO: "test@gmail.com"
|
|
SKIP_INVALID_DOMAIN_SEND: "1" |