Drop the PORT=3000 override from the quadlet so the container listens on PORT from config.env like the native service, and publish 127.0.0.1:3128:3128. Move PublishPort into a %config(noreplace) quadlet drop-in, /etc/containers/systemd/turborepo-remote-cache.container.d/ publish-port.conf, so hosts can change the host binding without an untracked override. Document in config.env that the container overrides HOST and that the listen address belongs in PublishPort.
40 lines
1.5 KiB
Bash
40 lines
1.5 KiB
Bash
# Turborepo Remote Cache server configuration
|
|
# =============================================
|
|
#
|
|
# This file is loaded by both the native systemd service and the
|
|
# Podman quadlet as an EnvironmentFile. Edit and restart the service:
|
|
#
|
|
# systemctl restart turborepo-remote-cache.service
|
|
#
|
|
# See https://github.com/ducktors/turborepo-remote-cache for all options.
|
|
|
|
# Shared secret that clients (turbo CLI, CI runners) must present.
|
|
# Generate with: openssl rand -hex 32
|
|
TURBO_TOKEN=CHANGE_ME
|
|
|
|
# Storage provider. Keep "local" for filesystem-backed cache.
|
|
STORAGE_PROVIDER=local
|
|
|
|
# Path inside the service/container where cached artifacts live.
|
|
# The native service writes here directly; the container mounts
|
|
# /var/cache/turborepo-remote-cache from the host to this path.
|
|
STORAGE_PATH=/var/cache/turborepo-remote-cache
|
|
|
|
# Use STORAGE_PATH as-is. Without this the server joins STORAGE_PATH
|
|
# onto os.tmpdir() (even when absolute) and the cache lands in /tmp,
|
|
# which is wiped on every restart.
|
|
STORAGE_PATH_USE_TMP_FOLDER=false
|
|
|
|
# Listen address and port. Bound to localhost by default — runners
|
|
# reach the host via host.containers.internal (Podman) on this port.
|
|
#
|
|
# Container: HOST is overridden to 0.0.0.0 by the quadlet. Set the host
|
|
# listen address in PublishPort instead, and keep PORT in sync with the
|
|
# container side of PublishPort:
|
|
# /etc/containers/systemd/turborepo-remote-cache.container.d/publish-port.conf
|
|
HOST=127.0.0.1
|
|
PORT=3128
|
|
|
|
# Log level: fatal, error, warn, info, debug, trace
|
|
LOG_LEVEL=info
|