mirror of
https://github.com/daniviga/bite.git
synced 2025-04-20 14:31:20 +02:00
Add ntpd server to the stack
This commit is contained in:
parent
5768ed9390
commit
6dda52f384
@ -11,6 +11,14 @@ x-op-service-default: &service_default
|
|||||||
init: true
|
init: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
ntpd:
|
||||||
|
<<: *service_default
|
||||||
|
image: daniviga/ntpd
|
||||||
|
networks:
|
||||||
|
- net
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:123:123/udp"
|
||||||
|
|
||||||
timescale:
|
timescale:
|
||||||
<<: *service_default
|
<<: *service_default
|
||||||
image: timescale/timescaledb:latest-pg12
|
image: timescale/timescaledb:latest-pg12
|
||||||
|
8
docker/ntpd/Dockerfile
Normal file
8
docker/ntpd/Dockerfile
Normal 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
3
docker/ntpd/chrony.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
pool pool.ntp.org iburst
|
||||||
|
initstepslew 10 pool.ntp.org
|
||||||
|
driftfile /var/lib/chrony/chrony.drift
|
Loading…
x
Reference in New Issue
Block a user