version: "3"

services:
  tmail-backend:
    image: linagora/tmail-backend:memory-1.0.6-rc1
    container_name: tmail-backend
    volumes:
      - ./jwt_publickey:/root/conf/jwt_publickey
      - ./jwt_privatekey:/root/conf/jwt_privatekey
      - ./mailetcontainer.xml:/root/conf/mailetcontainer.xml
      - ./imapserver.xml:/root/conf/imapserver.xml
      - ./jmap.properties:/root/conf/jmap.properties
      - ./deletedMessageVault.properties:/root/conf/deletedMessageVault.properties
      - ./listeners.xml:/root/conf/listeners.xml
      - ./linagora-ecosystem.properties:/root/conf/linagora-ecosystem.properties
      - ./openpaas.properties:/root/conf/openpaas.properties
      - ../provisioning/integration_test/provisioning.sh:/root/conf/integration_test/provisioning.sh
      - ../provisioning/integration_test/eml:/root/conf/integration_test/eml
    ports:
      - "80:80"
    environment:
      - DOMAIN=example.com
    networks:
      - tmail

networks:
  tmail:
