CI installs via local Verdaccio and prefers Gitea copies of node/postgres/nginx so staging and prod can still ship when Docker Hub and npmjs are unreachable.
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
# Copy to infrastructure/.env on the Linux server (not committed).
|
|
# docker compose -f docker-compose.prod.yml --env-file .env ...
|
|
|
|
DOMAIN=nudentic.ir
|
|
|
|
# Gitea Container Registry (tag auto-deploy). Same packages Windows CI pushes
|
|
# via host.docker.internal:3000 — Linux pulls via this hostname.
|
|
# Format: <host>:<port>/<owner> — no http://
|
|
REGISTRY_PREFIX=wixur.ir:3000/admin
|
|
|
|
# Image tag — CI sets this per release (v1.0.1). Do not use latest for Gitea prod
|
|
# (staging already owns :latest with the wixur.ir frontend bake).
|
|
TAG=v1.0.1
|
|
|
|
# Runtime bases copied into Gitea by seed-gitea-base-images.ps1 (Iran-local pulls).
|
|
POSTGRES_IMAGE=wixur.ir:3000/admin/postgres:15-alpine
|
|
NGINX_IMAGE=wixur.ir:3000/admin/nginx:alpine
|
|
CERTBOT_IMAGE=wixur.ir:3000/admin/certbot:latest
|
|
|
|
# Hub-only fallback: comment out REGISTRY_PREFIX and use:
|
|
# REGISTRY_PREFIX=dyolink
|
|
# TAG=latest
|
|
DOCKER_USERNAME=dyolink
|
|
|
|
# Let's Encrypt — certificate issuance and renewal notices
|
|
LETSENCRYPT_EMAIL=rameen.naghdi@gmail.com
|
|
|
|
# Optional: extra hostnames on the same cert (space-separated)
|
|
# CERTBOT_EXTRA_DOMAINS=www.nudentic.ir
|
|
|
|
# Optional: use Let's Encrypt staging while testing (avoids rate limits)
|
|
# LETSENCRYPT_STAGING=1
|
|
|
|
# Folder with database.env and backend.env (absolute path on server recommended)
|
|
DEPLOY_SECRETS_DIR=/opt/dyolink/secrets
|