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" MASQUERADED_DOMAINS: "postfix" ALLOWED_SENDER_DOMAINS: "example.org" POSTFIX_smtpd_end_of_data_restrictions: "check_client_access static:discard" MYNETWORKS: "127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16" HOSTNAME: "postfix" tests: image: "boky/postfix-integration-test" restart: "no" volumes: - "../tester:/code" build: context: ../tester command: "/" # relative path to /code environment: FROM: "demo@example.org" TO: "test@gmail.com"