mirror of
https://github.com/tiennm99/keepalive.git
synced 2026-10-15 10:15:10 +00:00
fix(config): discover mounted yml config
This commit is contained in:
1 parent
9a69030179
commit
08da9dcb84
4 files changed
+68
-4
No files matched your search
@@ -8,7 +8,7 @@ Successor to the `*-keepalive` family: one binary, one image, six datastore adap
|
||||
|
||||
## Configuration
|
||||
|
||||
By default, keepalive reads `keepalive.yaml` from the current working directory. One deployment can keep any number of services alive.
|
||||
By default, keepalive reads the first config file it finds: `keepalive.yaml`, `keepalive.yml`, `/keepalive.yaml`, then `/keepalive.yml`. One deployment can keep any number of services alive.
|
||||
|
||||
```yaml
|
||||
interval: 1m
|
||||
@@ -66,6 +66,8 @@ docker run -d --name keepalive --restart unless-stopped \
|
||||
keepalive:local
|
||||
```
|
||||
|
||||
If your host config file is named `keepalive.yml`, mount it to `/keepalive.yml` instead.
|
||||
|
||||
## Quick start (local)
|
||||
|
||||
```bash
|
||||
|
||||
Reference in new issue
Block a user