version: '3'

services:

  front:
    image: $DOCKER_ORG/nginx:$VERSION
    build: ../core/nginx

  imap:
    image: $DOCKER_ORG/dovecot:$VERSION
    build: ../core/dovecot

  smtp:
    image: $DOCKER_ORG/postfix:$VERSION
    build: ../core/postfix

  antispam:
    image: $DOCKER_ORG/rspamd:$VERSION
    build: ../services/rspamd

  antivirus:
    image: $DOCKER_ORG/clamav:$VERSION
    build: ../optional/clamav

  webdav:
    image: $DOCKER_ORG/radicale:$VERSION
    build: ../optional/radicale

  admin:
    image: $DOCKER_ORG/admin:$VERSION
    build: ../core/admin

  roundcube:
    image: $DOCKER_ORG/roundcube:$VERSION
    build: ../webmails/roundcube

  rainloop:
    image: $DOCKER_ORG/rainloop:$VERSION
    build: ../webmails/rainloop

  fetchmail:
    image: $DOCKER_ORG/fetchmail:$VERSION
    build: ../services/fetchmail

  none:
    image: $DOCKER_ORG/none:$VERSION
    build: ../core/none
