version: '3.7' networks: mail: name: mail services: mail: image: antespi/docker-imap-devel container_name: mail-dev restart: "${RESTART:-no}" hostname: mail.${BASE_DOMAIN} ports: - "25:25" - "143:143" - "993:993" environment: - MAILNAME=${BASE_DOMAIN} - MAIL_ADDRESS=git - MAIL_PASS=pass volumes: - /srv/mail:/var/mail networks: - mail