forked from sequenceiq/hadoop-docker
-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
45 lines (42 loc) · 1005 Bytes
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '2'
networks:
custom:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.22.0.0/16
gateway: 172.22.0.1
services:
kdc:
networks:
custom:
ipv4_address: 172.22.0.2
image: sequenceiq/kerberos
hostname: kdc.kerberos.com
environment:
REALM: EXAMPLE.COM
DOMAIN_REALM: kdc.kerberos.com
volumes:
- "./config_files/krb5.conf:/etc/krb5.conf"
- "/dev/urandom:/dev/random"
- "/etc/localtime:/etc/localtime:ro"
hadoop-secure:
networks:
custom:
ipv4_address: 172.22.0.3
image: knappek/hadoop-secure:2.7.4
depends_on:
- kdc
hostname: hadoop
domainname: docker.com
tty: true
extra_hosts:
- "kdc.kerberos.com kdc:172.22.0.2"
environment:
KRB_REALM: EXAMPLE.COM
DOMAIN_REALM: kdc.kerberos.com
FQDN: hadoop.docker.com
volumes:
- "./config_files/krb5.conf:/etc/krb5.conf"
- "/etc/localtime:/etc/localtime:ro"