services: davmail: image: ${IMAGE_NAME:-kran0/davmail-docker:latest} volumes: - davmail-config:/davmail-config # To save persistent conf data # build: # context: . # dockerfile: Dockerfile # args: # - BASE_IMAGE=docker.io/library/eclipse-temurin:21-jre-alpine # - BUILD_IMAGE=docker.io/library/eclipse-temurin:21-jdk-alpine # The env setting documentation: http://davmail.sourceforge.net/serversetup.html # Vars captions are the same, but the names must be provided in BASH_FORMAT # E.g. in UPPERCASE and with "_" instead of the dots as WORD_DELIMITER # Please watch more examples in tests/compose-sut.yaml environment: - DAVMAIL_SERVER=true - DAVMAIL_ALLOWREMOTE=true - DAVMAIL_DISABLEUPDATECHECK=true - DAVMAIL_LOGFILEPATH=/dev/stdout - DAVMAIL_CALDAVPORT=1080 - DAVMAIL_IMAPPORT=1143 - DAVMAIL_LDAPPORT=1389 - DAVMAIL_POPPORT=1110 - DAVMAIL_SMTPPORT=1025 - JAVA_OPTS=-Xmx512M -Dsun.net.inetaddr.ttl=30 # - DISABLE_DAVMAIL_PROPERTIES_PERSISTENCE=true # ADDITIONAL_PROPERTY_VALUES example usage # TODO: move this example to tests/compose-sut.yaml # the example is based on # https://github.com/mguessan/davmail/issues/321#issuecomment-1867072418 # and https://github.com/kran0/davmail-docker/pull/7 # Add any properties based on DavMail docs: https://davmail.sourceforge.net/serversetup.html # - ADDITIONAL_PROPERTY_VALUES= # # davmail.oauth.clientId=d3590ed6-52b3-4102-aeff-aad2292ab01c # # davmail.oauth.redirectUri=urn:ietf:wg:oauth:2.0:oob ports: - 1080:1080 - 1143:1143 - 1389:1389 - 1110:1110 - 1025:1025 restart: on-failure volumes: davmail-config: