mirror of
https://github.com/tiennm99/keepalive.git
synced 2026-10-11 03:13:31 +00:00
build(compose): drop the misleading port from the keepalive service
This commit is contained in:
1 parent
3c03e2ce06
commit
77b9a9673b
2 files changed
+8
-15
No files matched your search
@@ -81,7 +81,7 @@ cp config.example.yml config.yml
|
|||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
```
|
```
|
||||||
|
|
||||||
`compose.yml` also deploys on Coolify with the Docker Compose build pack (compose file `/compose.yml`). Coolify turns the `./config.yml` bind mount into an editable file storage; paste your config there. Keep the real `config.yml` out of git, since it holds datastore credentials.
|
`compose.yml` also deploys on Coolify with the Docker Compose build pack (compose file `/compose.yml`). Coolify turns the `./config.yml` bind mount into an editable file storage; paste your config there. keepalive is a background worker with no port, so leave the service without a domain. Keep the real `config.yml` out of git, since it holds datastore credentials.
|
||||||
|
|
||||||
## Quick start (Docker)
|
## Quick start (Docker)
|
||||||
|
|
||||||
|
|||||||
+7
-14
@@ -3,20 +3,13 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# keepalive reads no environment variables: every setting lives in the
|
# keepalive is a background worker: it opens no port and serves no HTTP,
|
||||||
# config file below. Coolify still injects its dashboard variables through
|
# so there is no `expose`, no `ports`, no domain and no healthcheck (the
|
||||||
# its generated .env, so nothing needs declaring here.
|
# distroless image has no shell or HTTP client to run one anyway).
|
||||||
#
|
#
|
||||||
# The app has no HTTP server. `expose` only mirrors the port the Coolify
|
# Every setting lives in the config file; the app reads no environment
|
||||||
# app was configured with; it publishes nothing on the host, and nothing
|
# variables. The real config holds datastore credentials, so never commit
|
||||||
# answers on it.
|
# it: locally, copy config.example.yml to config.yml; on Coolify, this bind
|
||||||
expose:
|
# mount becomes an editable file storage.
|
||||||
- "3000"
|
|
||||||
# The app reads /config.yml (see config.go). Coolify turns this bind mount
|
|
||||||
# into an editable file storage; locally, copy config.example.yml to
|
|
||||||
# config.yml first. The real config holds datastore credentials, so never
|
|
||||||
# commit it.
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.yml:/config.yml:ro
|
- ./config.yml:/config.yml:ro
|
||||||
# No healthcheck: the distroless image ships no shell or HTTP client to
|
|
||||||
# run one, and the Dockerfile defines none.
|
|
||||||
Reference in new issue
Block a user