58 lines
2.5 KiB
Plaintext
58 lines
2.5 KiB
Plaintext
# Copy to .env and adjust. Both ./build-and-push.sh and `docker compose`
|
|
# load this .env automatically.
|
|
#
|
|
# cp .env.example .env
|
|
|
|
# NOTE: this is the committed template. Put real values in .env, never here —
|
|
# only .env is gitignored.
|
|
|
|
# ---- Docker Hub ----------------------------------------------------------
|
|
# Your Docker Hub user or organisation. Images are pushed as
|
|
# $DOCKERHUB_NAMESPACE/<image>:<tag>
|
|
DOCKERHUB_NAMESPACE=abdtag
|
|
|
|
# Docker Hub user used for `docker login`. Usually the same as the namespace,
|
|
# but differs when pushing to an org.
|
|
DOCKERHUB_USERNAME=abdtag
|
|
|
|
# A Docker Hub *access token* (Account Settings -> Personal access tokens).
|
|
# Leave empty to be prompted, or to rely on an existing `docker login`.
|
|
DOCKERHUB_TOKEN=
|
|
|
|
# ---- Build ---------------------------------------------------------------
|
|
# Tag applied to every image. Empty => auto-generated (see README):
|
|
# <short-git-sha>-<UTC timestamp>, e.g. a1b2c3d-20260905T2015Z
|
|
TAG=
|
|
|
|
# Also tag and push :latest alongside $TAG.
|
|
PUSH_LATEST=true
|
|
|
|
# Target architectures. The Fennec servers are x86_64, so amd64 is the default.
|
|
# Use "linux/amd64,linux/arm64" for images that must also run on Apple Silicon;
|
|
# the Angular builds are noticeably slower under arm64 emulation.
|
|
PLATFORMS=linux/amd64
|
|
|
|
# Angular build memory (frontend images only). Leave empty to use the defaults
|
|
# baked into each Dockerfile, which are sized for a ~8GB Docker VM.
|
|
#
|
|
# NODE_MAX_OLD_SPACE is the per-worker heap in MB; NG_BUILD_MAX_WORKERS is how
|
|
# many compile workers run at once. Peak memory is roughly the product, and it
|
|
# must fit in Docker Desktop -> Settings -> Resources -> Memory. If a build
|
|
# fails with "JS heap out of memory", raise the Docker VM memory first, then
|
|
# raise these. To build faster on a bigger machine, raise the worker count.
|
|
#NODE_MAX_OLD_SPACE=8192
|
|
#NG_BUILD_MAX_WORKERS=2
|
|
|
|
# ---- Deploy (docker-compose.yml) -----------------------------------------
|
|
# Only needed on the machine running `docker compose up`. TAG above selects
|
|
# which pushed tag gets deployed; empty => :latest.
|
|
|
|
# Required — compose refuses to start without it.
|
|
SPRING_DATASOURCE_PASSWORD=
|
|
|
|
# Optional overrides; the compose file has working defaults for each.
|
|
#SPRING_PROFILES_ACTIVE=custom
|
|
#SPRING_DATASOURCE_USERNAME=root
|
|
#SPRING_DATASOURCE_URL=jdbc:mysql://host.docker.internal:3306/fennecpro?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
|
|
#FENNEC_HUB_SECURITY_CORS_ALLOWED_ORIGINS=http://localhost,http://localhost:4200,https://hub.fennecsm.com,https://ecom.fennecsm.com
|