<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"Yu Gothic";
        panose-1:2 11 4 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@Yu Gothic";
        panose-1:2 11 4 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">It should just be the standard config entry for pgsql:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">// 3. PostgreSQL backend. Leases will be stored in PostgreSQL database. Make<o:p></o:p></p>
<p class="MsoNormal">// sure it is up, running and properly initialized. See kea-admin documentation<o:p></o:p></p>
<p class="MsoNormal">// for details on how to initialize the database. The only strictly required<o:p></o:p></p>
<p class="MsoNormal">// parameters are type and name. If other parameters are not specified,<o:p></o:p></p>
<p class="MsoNormal">// Kea will assume the database is available on localhost, that user and<o:p></o:p></p>
<p class="MsoNormal">// password is not necessary to connect and that timeout is 5 seconds.<o:p></o:p></p>
<p class="MsoNormal">// Kea must be compiled with --with-dhcp-pgsql option to use this backend.<o:p></o:p></p>
<p class="MsoNormal">//  "lease-database": {<o:p></o:p></p>
<p class="MsoNormal">//      "type": "pgsql",<o:p></o:p></p>
<p class="MsoNormal">//      "name": "keatest",<o:p></o:p></p>
<p class="MsoNormal">//      "host": "localhost",<o:p></o:p></p>
<p class="MsoNormal">//      "port": 5432,<o:p></o:p></p>
<p class="MsoNormal">//      "user": "keatest",<o:p></o:p></p>
<p class="MsoNormal">//      "password": "secret1",<o:p></o:p></p>
<p class="MsoNormal">//      "connect-timeout": 3<o:p></o:p></p>
<p class="MsoNormal">//  },<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Just change localhost to the IP of your database.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> Kea-users [mailto:kea-users-bounces@lists.isc.org]
<b>On Behalf Of </b>Toby Walsh<br>
<b>Sent:</b> Sunday, August 13, 2017 8:44 PM<br>
<b>To:</b> kea-users@lists.isc.org<br>
<b>Subject:</b> [Kea-users] Configuring containerized kea / postgres<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi list,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I'm building a docker image of kea 1.2.0. I want to run it in one container and hook it up to postgres running in another container. Without digging too deep into the code it seems that's not possible? Can someone confirm? I don't want
 to pull postgres into the kea container and conceptually I think I shouldn't have to so it would be great if there were a way to decouple them but still tell kea at configure time that I want to use postgres ...<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Toby<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>