Refactor Versity S3 Gateway configuration in README.md, .env.sample, and compose.yaml. Update README to clarify environment variable usage and adjust .env.sample for local setup instructions. Modify compose.yaml to utilize environment variable interpolation, ensuring proper credential handling and enhancing deployment security.
This commit is contained in:
@@ -5,15 +5,18 @@ services:
|
||||
image: versity/versitygw:v1.3.1
|
||||
container_name: versitygw
|
||||
restart: unless-stopped
|
||||
# Komodo writes Stack Environment to `.env` in the run directory; that file is
|
||||
# not automatically injected into the container unless listed here (pass-through
|
||||
# only sees the compose process env, not this file).
|
||||
env_file:
|
||||
- path: .env
|
||||
required: false
|
||||
# Credentials: use `${VAR}` so values come from the same env Komodo passes with
|
||||
# `docker compose --env-file <run_directory>/.env` (see Komodo Stack docs).
|
||||
# Do NOT use `env_file: .env` here: that path is resolved next to *this* compose
|
||||
# file, while Komodo writes `.env` under `run_directory` — they often differ
|
||||
# (e.g. run_directory = repo root, compose in komodo/s3/versitygw/).
|
||||
environment:
|
||||
ROOT_ACCESS_KEY: ${ROOT_ACCESS_KEY}
|
||||
ROOT_SECRET_KEY: ${ROOT_SECRET_KEY}
|
||||
ROOT_ACCESS_KEY_ID: ${ROOT_ACCESS_KEY_ID}
|
||||
ROOT_SECRET_ACCESS_KEY: ${ROOT_SECRET_ACCESS_KEY}
|
||||
# Matches Helm chart default; enables `/_/health` for probes.
|
||||
- VGW_HEALTH=/_/health
|
||||
VGW_HEALTH: /_/health
|
||||
ports:
|
||||
- "${VERSITYGW_PORT:-10000}:10000"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user