version: '3' services: server: image: core depends_on: - db command: /usr/sbin/kopano-server dagent: image: core depends_on: - db - server command: /usr/sbin/kopano-dagent spooler: image: core depends_on: - db - server command: /usr/sbin/kopano-spooler search: image: core depends_on: - db - server command: /usr/sbin/kopano-search postfix: image: postfix volumes: - spool:/var/spool/postfix webapp: image: webapp labels: - traefik.enable=true - traefik.http.routers.webapp.rule=Host(`$MAIL_DOMAIN`) && Path(`/webapp`) - traefik.http.routers.webapp.tls=true - traefik.http.routers.webapp.tls.certResolver=default depends_on: - server networks: - default - traefik z-push: image: z-push labels: - traefik.enable=true - traefik.http.routers.webapp.rule=Host(`$MAIL_DOMAIN`) && Path(`/Active-Sync-...`) - traefik.http.routers.webapp.tls=true - traefik.http.routers.webapp.tls.certResolver=default volumes: - z-push:/var/lib/z-push depends_on: - server networks: - default - traefik db: image: mysql restart: unless-stopped volumes: - database:/var/lib/mysql networks: traefik: external: true volumes: - attachments: - database: - z-push: - spool: