From ee51d3983a39d40d12d4a949c3ec6896307716ae Mon Sep 17 00:00:00 2001 From: Abdelghani Tag Date: Sun, 6 Sep 2026 17:05:42 +1200 Subject: [PATCH] docker release --- .env | 44 ++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 2 +- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..76fe6d1 --- /dev/null +++ b/.env @@ -0,0 +1,44 @@ +# Copy to .env and adjust. Both ./build-and-push.sh and `docker compose` +# load this .env automatically. +# +# cp .env.example .env + +# ---- Docker Hub ---------------------------------------------------------- +# Your Docker Hub user or organisation. Images are pushed as +# $DOCKERHUB_NAMESPACE/: +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`. +# Never commit a real token — .env is gitignored. +DOCKERHUB_TOKEN=dckr_pat_ouFcihEZpP0izVP1HGh-DtZs3IU + +# ---- Build --------------------------------------------------------------- +# Tag applied to every image. Empty => auto-generated (see README): +# -, 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 + +# ---- 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=123 + +# 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 diff --git a/.gitignore b/.gitignore index 86d50d1..71334a9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ # Holds the Docker Hub token — never commit it. -.env +#.env