Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,17 @@ As an example, using `docker-compose.yaml`, that would be look like this if you
...
```

## Listening Interface

In case the docker 'host' network is used, it is possible to select the interface in which the ntp service wil be
listening by setting up the variable `LISTENIFACE` and the interface name in `docker-compose.yaml` file:

```yaml
...
environment:
- LISTENIFACE=eth1
...
```

## Testing your NTP Container

Expand Down
3 changes: 3 additions & 0 deletions assets/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ done
# final bits for the config file
{
echo
if [ ! -z ${LISTENIFACE+x} ]
echo "binddevice $LISTENIFACE"
fi
echo "driftfile /var/lib/chrony/chrony.drift"
echo "makestep 0.1 3"
if [ "${NOCLIENTLOG}" = true ]; then
Expand Down