Skip to content

Commit

Permalink
Add docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xZero707 committed Jun 22, 2024
1 parent 4ce3928 commit 48f944c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit 48f944c

Please sign in to comment.