Skip to content

Commit

Permalink
basic configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
wixyvir committed Nov 10, 2015
1 parent ed8b1a3 commit a4800c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ FROM debian:jessie

MAINTAINER Cyprien DIOT <[email protected]>

RUN apt-get update && apt-get install -y openntpd && apt-get clean && rm -rf /var/lib/dpkg/* && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y openntpd && apt-get clean
ADD ntpd.conf /etc/openntpd/ntpd.conf

EXPOSE 123/udp

ENTRYPOINT [ "/usr/sbin/openntpd", "-d", "-f", "/etc/openntpd/ntpd.conf" ]
12 changes: 6 additions & 6 deletions ntpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# sample ntpd configuration file, see ntpd.conf(5)

# Addresses to listen on (ntpd does not listen by default)
#listen on *
listen on 0.0.0.0
#listen on 127.0.0.1
#listen on ::1

Expand All @@ -11,11 +11,11 @@

# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
#servers pool.ntp.org
servers pool.ntp.org

# Choose servers announced from Debian NTP Pool
servers 0.debian.pool.ntp.org
servers 1.debian.pool.ntp.org
servers 2.debian.pool.ntp.org
servers 3.debian.pool.ntp.org
#servers 0.debian.pool.ntp.org
#servers 1.debian.pool.ntp.org
#servers 2.debian.pool.ntp.org
#servers 3.debian.pool.ntp.org

0 comments on commit a4800c9

Please sign in to comment.