docker-postfix/integration-tests/ldap/docker-compose.yml
pixil98 11cc00c942
Include ldap support in docker image (#205)
* include postfix-ldap in docker build

* Add integration tests (#3)

* Redo ldap test to use postmap instead of sending email

---------

Co-authored-by: Aaron Reisman <areisman@epic.com>
2024-08-26 18:10:32 +02:00

31 lines
No EOL
815 B
YAML

version: '3.7'
services:
tests:
hostname: "postfix"
image: "boky/postfix"
restart: "no"
volumes:
- "./tests:/tests"
- "./postfix-conf:/etc/postfix/conf/"
environment:
FORCE_COLOR: "1"
ALLOWED_EMPTY_SENDER_DOMAINS: "example.org"
POSTFIX_smtpd_end_of_data_restrictions: "check_client_access static:discard"
entrypoint: [ "/bin/sh", "-c" ]
command: [ "/tests/test.sh" ]
depends_on:
ldap:
condition: service_healthy
restart: true
ldap:
hostname: "ldap"
image: "thoteam/slapd-server-mock"
restart: always
healthcheck:
test: [ "CMD-SHELL", "bash -c 'exec 6<> /dev/tcp/localhost/389'" ]
interval: 10s
timeout: 5s
start_period: 10s
retries: 2
volumes:
- "./ldap-conf:/bootstrap/"