-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
31 lines (30 loc) · 1.17 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: "2"
services:
# This service MUST have the name "kdc-kadmin" otherwise every kerberos client won't be able to talk with the KDC.
# If you would like to change the name edit the file configureKerberosClient.sh and change the configurations
# "kdc" and "admin_server" in the /etc/krb5.conf section.
kdc-kadmin:
build: ./kdc-kadmin
hostname: kdc-kadmin
container_name: kdc-kadmin # predefined name, instead of auto-generated by docker-compose
env_file: kerberos.env
volumes:
# This is needed otherwise there won't be enough entropy to generate a new kerberos realm
- /dev/urandom:/dev/random
- .:/code # shared folder
kerberos-client:
hostname: kerberos-client
container_name: kerberos-client
build: ./kerberos-client
env_file: kerberos.env
depends_on:
- kdc-kadmin
volumes:
- .:/code # shared folder
# NOTE:
# "env_file: kerberos.env" is optional.
# In case no .env file is supplied, nor any environment variable is set, the following values will be used:
# REALM=EXAMPLE.COM
# SUPPORTED_ENCRYPTION_TYPES=aes256-cts-hmac-sha1-96:normal
# KADMIN_PRINCIPAL=kadmin/admin
# KADMIN_PASSWORD=MITiys4K5