-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
90 lines (86 loc) · 2.28 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
version: '3'
services:
kdc-server-example-com:
build:
context: .
dockerfile: ./krb5-centos/kdc-server/Dockerfile
image: krb5-kdc-server-example-com
container_name: krb5-kdc-server-example-com
hostname: krb5-kdc-server-example-com
domainname: example.com
networks:
example.com:
ipv4_address: 10.5.0.2
volumes:
- ./share:/root/share
environment:
- KRB5_TRACE=/dev/stderr
- POST_BOOTSTRAP_COMMAND=
/opt/kerberos-utils/create_admin.sh alice alice;
/opt/kerberos-utils/create_client.sh bob bob /root/share/client.keytab;
/opt/kerberos-utils/create_service.sh presto-kerberos HTTP /root/share/presto.keytab
healthcheck:
test: 'ss -ltpn | grep :88'
interval: 5s
timeout: 30s
retries: 50
restart: always
presto-kerberos:
build:
context: .
dockerfile: ./krb5-centos/presto/Dockerfile
image: presto-kerberos
container_name: presto-kerberos
hostname: presto-kerberos
domainname: example.com
networks:
example.com:
ipv4_address: 10.5.0.3
ports:
- "37778:7778"
- "38080:8080"
volumes:
- ./share:/home/presto
environment:
- KRB5_KTNAME=/home/presto/presto.keytab
- KRB5_TRACE=/dev/stderr
depends_on:
kdc-server-example-com:
condition: service_healthy
healthcheck:
test: curl --fail http://localhost:8080/v1/info/ | grep '"starting":false'
interval: 5s
timeout: 30s
retries: 50
restart: always
machine-example-com:
build:
context: .
dockerfile: ./krb5-centos/machine/Dockerfile
image: krb5-machine-example-com
container_name: krb5-machine-example-com
hostname: krb5-machine-example-com
domainname: example.com
networks:
example.com:
ipv4_address: 10.5.0.1
volumes:
- ./share:/root/share
environment:
- KRB5_KTNAME=/root/share/client.keytab
- KRB5_TRACE=/dev/stderr
depends_on:
kdc-server-example-com:
condition: service_healthy
presto-kerberos:
condition: service_healthy
networks:
example.com:
name: example.com
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/24
ip_range: 10.5.0.0/24
gateway: 10.5.0.254