From 48f944cc4f41aeb584aacb24e1271758644b68f4 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Sat, 22 Jun 2024 18:03:35 +0200 Subject: [PATCH] Add docker-compose.yml --- docker-compose.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d240dc5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,36 @@ +networks: + default: + +services: + chronyd: + image: ghcr.io/n0rthernl1ghts/chrony-server:latest + hostname: "ntp.example.com" + deploy: + restart_policy: + condition: any + resources: + limits: + memory: 256M + cap_add: + - SYS_TIME + cap_drop: + # Drop all capabilities that are not needed + - FSETID + - KILL + - SETPCAP + - NET_RAW + - SYS_CHROOT + - MKNOD + - AUDIT_WRITE + - SETFCAP + environment: + PUID: 1000 + PGID: 1000 + TZ: Europe/Stockholm + volumes: + - ./data/chronyd/data:/chrony/data + #- ./chrony.conf:/chrony/chrony.conf + ports: + - "123:123/udp" + networks: + default: \ No newline at end of file