This repository was archived by the owner on Jun 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
78 lines (72 loc) · 1.83 KB
/
docker-compose.yaml
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
version: '2'
#
# TODO:
#
#
# 1. allow things (like realm, etc..) to be configurable in an .env file
# 2. check fi you can set the freeipa hostname to the IP address so that
# developers don't need to muck around with their /etc/hosts file
#
services:
smtp:
container_name: mailhog
image: "mailhog/mailhog:v1.0.0"
ports:
- "1025:1025"
- "8025:8025"
freeipa:
image: freeipa/freeipa-server:fedora-25
container_name: freeipa
hostname: freeipa.local.xetus.com
domainname: freeipa.local.xetus.com
extra_hosts:
- "freeipa.local.xetus.com:172.16.1.10"
privileged: true
volumes:
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
- "datavol:/data"
- "./server/ipa-volume:/root/shared"
- "./server/config:/root/pw-portal/config"
command:
- --ip-address=172.16.1.10
- "--domain=local.xetus.com"
- "--realm=LOCAL.XETUS.COM"
- "--ds-password=testabc123"
- "--admin-password=testabc123"
- --setup-dns
- --auto-forwarders
- --unattended
environment:
IPA_SERVER_IP: "172.16.1.10"
networks:
priv_network:
ipv4_address: 172.16.1.10
nginx:
image: nginx:alpine
container_name: freeipa-nginx
hostname: freeipa
domainname: freeipa
extra_hosts:
- "freeipa.local.xetus.com:172.16.1.10"
ports:
- '8888:8888/tcp'
- '8888:8888/udp'
- '9443:9443/tcp'
volumes:
- "./server/nginx/nginx.conf:/etc/nginx/nginx.conf"
- "./server/nginx/nginx.crt:/etc/nginx/ssl/nginx.crt"
- "./server/nginx/nginx.key:/etc/nginx/ssl/nginx.key"
networks:
default:
priv_network:
ipv4_address: 172.16.1.11
volumes:
datavol:
networks:
priv_network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.1.0/24
gateway: 172.16.1.1