1
0
mirror of https://github.com/daniviga/bite.git synced 2025-04-18 22:00:11 +02:00

Add ntpd server to the stack

This commit is contained in:
Daniele Viganò 2020-06-03 01:07:22 +02:00
parent 5768ed9390
commit 6dda52f384
Signed by: dani
GPG Key ID: DB49AFC03C40EE02
3 changed files with 19 additions and 0 deletions

View File

@ -11,6 +11,14 @@ x-op-service-default: &service_default
init: true
services:
ntpd:
<<: *service_default
image: daniviga/ntpd
networks:
- net
ports:
- "127.0.0.1:123:123/udp"
timescale:
<<: *service_default
image: timescale/timescaledb:latest-pg12

8
docker/ntpd/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM alpine:3.9
RUN apk update && apk add chrony && \
chown -R chrony:chrony /var/lib/chrony
COPY ./chrony.conf /etc/chrony/chrony.conf
EXPOSE 123/udp
ENTRYPOINT ["chronyd", "-d", "-s", "-x"]

3
docker/ntpd/chrony.conf Normal file
View File

@ -0,0 +1,3 @@
pool pool.ntp.org iburst
initstepslew 10 pool.ntp.org
driftfile /var/lib/chrony/chrony.drift