# One lease slot of scripts/backend-reset-server.py; keep the image and mounts in sync with docker-compose.yaml. services: tmail-backend: image: &backend-image linagora/tmail-backend:memory-1.0.23.1 labels: - tmail.ci.pool=1 - tmail.ci.node=${NODE_NAME:-} volumes: - ${SLOT_JMAP_PROPERTIES}:/root/conf/jmap.properties - ./jwt_publickey:/root/conf/jwt_publickey - ./jwt_privatekey:/root/conf/jwt_privatekey - ./mailetcontainer.xml:/root/conf/mailetcontainer.xml - ./imapserver.xml:/root/conf/imapserver.xml - ./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/backup.zip:/root/conf/integration_test/backup.zip # Joins the holder's netns: recreating this container never adds or removes a host interface. network_mode: "service:network-holder" environment: - DOMAIN=example.com - JAVA_TOOL_OPTIONS=${POOL_JAVA_TOOL_OPTIONS} # Owns the slot's network for the whole run; a veth removed per recycle made Chrome abort fetches (ERR_NETWORK_CHANGED). network-holder: image: *backend-image entrypoint: ["sleep", "infinity"] # sleep ignores SIGTERM as PID 1; skip the 10 s stop timeout on down. stop_signal: SIGKILL labels: - tmail.ci.pool=1 - tmail.ci.node=${NODE_NAME:-} ports: - "${SLOT_JMAP_PORT}:80" - "${SLOT_WEBADMIN_PORT}:8000" # openpaas.properties names hosts that do not exist here; refuse at once instead of waiting on DNS extra_hosts: - "esn:127.0.0.1" - "esn_sabre:127.0.0.1"