forked from data.coop/ansible
21 lines
626 B
Plaintext
21 lines
626 B
Plaintext
|
# vim: ft=yaml.docker-compose
|
||
|
version: "3.8"
|
||
|
|
||
|
services:
|
||
|
app:
|
||
|
image: boky/postfix:{{ services.postfix.version }}
|
||
|
restart: always
|
||
|
networks:
|
||
|
- postfix
|
||
|
volumes:
|
||
|
- "./dkim:/etc/opendkim/keys"
|
||
|
environment:
|
||
|
# Get all services which have allowed_sender_domain defined
|
||
|
ALLOWED_SENDER_DOMAINS: "{{ services | dict2items | selectattr('value.allowed_sender_domain', 'true') | map(attribute='value.domain') | join(' ') }}"
|
||
|
HOSTNAME: "{{ services.postfix.domain }}" # the name the smtp server will identify itself as
|
||
|
DKIM_AUTOGENERATE: true
|
||
|
|
||
|
networks:
|
||
|
postfix:
|
||
|
external: true
|