mail: # image: tvial/docker-mailserver build: . hostname: mail domainname: my-domain.com ports: - "25:25" - "143:143" - "587:587" - "993:993" environment: docker_mail_domain: "my-domain.com" volumes: - ./spamassassin:/tmp/spamassassin/:ro - ./postfix:/tmp/postfix/:ro