73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
|
version: '2'
|
||
|
|
||
|
services:
|
||
|
|
||
|
openldap:
|
||
|
image: osixia/openldap:1.2.5
|
||
|
container_name: openldap
|
||
|
environment:
|
||
|
LDAP_LOG_LEVEL: "256"
|
||
|
# LDAP_ORGANISATION: "example.org."
|
||
|
LDAP_DOMAIN: "example.org"
|
||
|
LDAP_BASE_DN: "dc=example,dc=org"
|
||
|
LDAP_ADMIN_PASSWORD: "admin"
|
||
|
LDAP_READONLY_USER: "false"
|
||
|
# LDAP_READONLY_USER_USERNAME: "ldap-ro"
|
||
|
# LDAP_READONLY_USER_PASSWORD: "prout"
|
||
|
LDAP_TLS: "true"
|
||
|
LDAP_TLS_CRT_FILENAME: "ldap-cert.pem"
|
||
|
LDAP_TLS_KEY_FILENAME: "ldap-key.pem"
|
||
|
LDAP_TLS_CA_CRT_FILENAME: "ca.crt"
|
||
|
LDAP_TLS_VERIFY_CLIENT: "never"
|
||
|
tty: true
|
||
|
stdin_open: true
|
||
|
command: [ "--copy-service","--loglevel","debug" ]
|
||
|
ports:
|
||
|
- "389:389"
|
||
|
- "636:636"
|
||
|
volumes:
|
||
|
- ./openldap/test.ldif:/container/service/slapd/assets/config/bootstrap/ldif/50-bootstrap.ldif
|
||
|
- ./test:/container/service/slapd/certs
|
||
|
hostname: ldap.example.org
|
||
|
|
||
|
pdns:
|
||
|
image: synyx/pdns:latest
|
||
|
container_name: pdns
|
||
|
environment:
|
||
|
PDNS_DEBUG_ENV: "true"
|
||
|
PDNS_LAUNCH: "gmysql"
|
||
|
PDNS_GMYSQL_HOST: "pdns-mysql"
|
||
|
PDNS_GMYSQL_DBNAME: "pdns"
|
||
|
PDNS_GMYSQL_USER: "pdns"
|
||
|
PDNS_GMYSQL_PASSWORD: "pdns"
|
||
|
PDNS_LOG_DNS_QUERIES: "yes"
|
||
|
PDNS_LOGLEVEL: 5
|
||
|
PDNS_API: "yes"
|
||
|
PDNS_API_KEY: "123password"
|
||
|
PDNS_API_LOFGILE: "/var/log/pdns-api.log"
|
||
|
PDNS_WEBSERVER: "yes"
|
||
|
PDNS_WEBSERVER_ADDRESS: "0.0.0.0"
|
||
|
PDNS_WEBSERVER_ALLOW_FROM: "0.0.0.0/0;::/0"
|
||
|
ports:
|
||
|
- "53:53"
|
||
|
- "53:53/udp"
|
||
|
- "8081:8081"
|
||
|
- "9120:9120"
|
||
|
hostname: pdns
|
||
|
links:
|
||
|
- pdns-mysql
|
||
|
|
||
|
pdns-mysql:
|
||
|
image: mariadb:10.3.10
|
||
|
container_name: pdns-mysql
|
||
|
environment:
|
||
|
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
|
||
|
MYSQL_DATABASE: "pdns"
|
||
|
MYSQL_USER: "pdns"
|
||
|
MYSQL_PASSWORD: "pdns"
|
||
|
ports:
|
||
|
- "3306:3306"
|
||
|
volumes:
|
||
|
- ./pdns/pdns.dump:/docker-entrypoint-initdb.d/pdns.sql
|
||
|
hostname: pdns-mysql
|