Files
keepalive/compose.yml
T
tiennm99 c1041e3062 build(compose): adapt compose file for Coolify deployment
Drop container_name and the local image tag, which conflict with Coolify's own container and image naming, and expose the configured app port without publishing it. Document the Coolify file storage for config.yml.
2026-10-07 08:47:35 +07:00

23 lines
920 B
YAML

services:
keepalive:
build:
context: .
restart: unless-stopped
# keepalive reads no environment variables: every setting lives in the
# config file below. Coolify still injects its dashboard variables through
# its generated .env, so nothing needs declaring here.
#
# The app has no HTTP server. `expose` only mirrors the port the Coolify
# app was configured with; it publishes nothing on the host, and nothing
# answers on it.
expose:
- "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:
- ./config.yml:/config.yml:ro
# No healthcheck: the distroless image ships no shell or HTTP client to
# run one, and the Dockerfile defines none.