version: '3'

services:

  front:
    image: ${DOCKER_ORG:-mailu}/nginx:${VERSION:-local}
    build: ../core/nginx

  imap:
    image: ${DOCKER_ORG:-mailu}/dovecot:${VERSION:-local}
    build: ../core/dovecot

  smtp:
    image: ${DOCKER_ORG:-mailu}/postfix:${VERSION:-local}
    build: ../core/postfix

  antispam:
    image: ${DOCKER_ORG:-mailu}/rspamd:${VERSION:-local}
    build: ../services/rspamd

  antivirus:
    image: ${DOCKER_ORG:-mailu}/clamav:${VERSION:-local}
    build: ../optional/clamav

  webdav:
    image: ${DOCKER_ORG:-mailu}/radicale:${VERSION:-local}
    build: ../optional/radicale

  admin:
    image: ${DOCKER_ORG:-mailu}/admin:${VERSION:-local}
    build: ../core/admin

  roundcube:
    image: ${DOCKER_ORG:-mailu}/roundcube:${VERSION:-local}
    build: ../webmails/roundcube

  rainloop:
    image: ${DOCKER_ORG:-mailu}/rainloop:${VERSION:-local}
    build: ../webmails/rainloop

  fetchmail:
    image: ${DOCKER_ORG:-mailu}/fetchmail:${VERSION:-local}
    build: ../services/fetchmail

  none:
    image: ${DOCKER_ORG:-mailu}/none:${VERSION:-local}
    build: ../core/none

  docs:
    image: ${DOCKER_ORG:-mailu}/docs:${VERSION:-local}
    build: ../docs

  setup:
    image: ${DOCKER_ORG:-mailu}/setup:${VERSION:-local}
    build: ../setup

