21 lines
953 B
Bash
21 lines
953 B
Bash
# Copying is optional: make up runs scripts/bootstrap.py and creates .env once.
|
|
# Never put credentials in this file. Bootstrap writes ignored ./secrets/ files.
|
|
PUBLIC_PORT=8084
|
|
API_REPLICAS=2
|
|
API_CPUS=0.5
|
|
API_MEMORY=512m
|
|
POOL_MAX_SIZE=8
|
|
SESSION_TTL_SECONDS=3600
|
|
# Optional custom tag; default is mtusi-vasilev:lab4.
|
|
API_IMAGE=mtusi-vasilev:lab4
|
|
|
|
# Fixed internal topology in compose.yaml (comments, not .env overrides):
|
|
# API binds 0.0.0.0:8080; only LB publishes 127.0.0.1:${PUBLIC_PORT}:8080.
|
|
# PostgreSQL host=postgres, database/user=messenger; DATABASE_URL_FILE is mounted.
|
|
# CACHE_URL_FILE points to redis://cache:6379/0, public user cards only.
|
|
# S3_ENDPOINT=http://s3:8333, S3_BUCKET=messenger.
|
|
# S3_ACCESS_KEY_FILE=/run/secrets/s3_access_key
|
|
# S3_SECRET_KEY_FILE=/run/secrets/s3_secret_key
|
|
# Bootstrap alone receives S3_ADMIN_ACCESS_KEY_FILE/S3_ADMIN_SECRET_KEY_FILE.
|
|
# Storage backend/filer/master are on the isolated storage_backend network.
|