forked from Cray-HPE/cray-dhcp-kea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
61 lines (60 loc) · 1.74 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
version: '3'
services:
cray-dhcp-kea:
#build: .
image: cray-dhcp-kea:latest
container_name: cray-dhcp-kea
volumes:
- ./cray-dhcp-kea-dhcp4.conf:/cray-dhcp-kea-dhcp4.conf
- cray-dhcp-kea-socket:/cray-dhcp-kea-socket
network_mode: host
environment:
# ports:
# - 67:67/udp
# - 67:67/tcp
# - 68:68/udp
# - 68:68/tcp
environment:
DHCP_CAHOST: 127.0.0.1 # KEA Control agent host
DHCP_CAPORT: 8000 # KEA Control agent port
DHCP_DBHOST: localhost
DHCP_DBNAME: dhcpdb
DHCP_DBUSER: postgres # keep in sync with POSTGRES_USER
DHCP_DBPASS: dhcpdb # keep in sync with POSTGRES_DB
depends_on:
- cray-dhcp-kea-db
restart: always
#entrypoint: "tail -f"
environment:
DHCP_DBNAME: dhcpdb # keep in sync with POSTGRES_PASSWORD
DHCP_DBHOST: localhost
DHCP_DBUSER: postgres # keep in sync with POSTGRES_USER
DHCP_DBPASS: dhcpdb # keep in sync with POSTGRES_DB
cray-dhcp-kea-ctrl-agent:
image: cray-dhcp-kea:latest
container_name: cray-dhcp-kea-ctrl-agent
privileged: true
volumes:
- ./cray-dhcp-kea-ctrl-agent.conf:/cray-dhcp-kea-ctrl-agent.conf
- cray-dhcp-kea-socket:/cray-dhcp-kea-socket
ports:
- 8000:8000
restart: always
#entrypoint: "tail -f"
environment:
DHCP_CAHOST: 0.0.0.0 # KEA Control agent host
DHCP_CAPORT: 8000 # KEA Control agent port
cray-dhcp-kea-db:
image: postgres
container_name: cray-dhcp-kea-db
ports:
- 5432:5432
volumes:
- ./postgres:/docker-entrypoint-initdb.d
environment:
POSTGRES_USER: postgres
POSTGRES_DB: dhcpdb
POSTGRES_PASSWORD: dhcpdb
restart: always
volumes:
cray-dhcp-kea-socket: