mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
chore: drop ptp-probe/statime and run haci in Docker
Co-authored-by: aider (openai/gpt-5) <aider@aider.chat>
This commit is contained in:
parent
62c94c777f
commit
e5a2c52120
2 changed files with 7 additions and 45 deletions
|
|
@ -1,11 +1,11 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
haci:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: ntp_timeturner
|
||||
container_name: haci
|
||||
environment:
|
||||
- RUST_LOG=info
|
||||
ports:
|
||||
|
|
@ -13,36 +13,3 @@ services:
|
|||
volumes:
|
||||
- ./static:/app/static:ro
|
||||
restart: unless-stopped
|
||||
|
||||
# Optional: probe a PTP hardware clock (Linux host with /dev/ptp0)
|
||||
ptp-probe:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: ntp_timeturner:latest
|
||||
profiles:
|
||||
- hw
|
||||
command: ["ptp_probe", "--device", "/dev/ptp0", "--interval", "1.0", "--count", "0"]
|
||||
devices:
|
||||
- "/dev/ptp0:/dev/ptp0"
|
||||
restart: "no"
|
||||
|
||||
# PTP daemon using Statime (software PTP inside the container)
|
||||
# Note: On macOS with Docker Desktop, low-level PTP networking features are limited.
|
||||
# This service is most effective on a Linux host. Still useful for dev/testing.
|
||||
statime:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: ntp_timeturner:latest
|
||||
container_name: statime
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- NET_RAW
|
||||
- SYS_TIME
|
||||
command: ["statime", "-i", "eth0"]
|
||||
# Expose standard PTP ports (udp/319, udp/320)
|
||||
ports:
|
||||
- "319:319/udp"
|
||||
- "320:320/udp"
|
||||
restart: unless-stopped
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue