-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy path.env.example
More file actions
61 lines (56 loc) · 2.53 KB
/
Copy path.env.example
File metadata and controls
61 lines (56 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# Project-root Docker/Compose overrides
# Copy to `.env` only when you need custom ports or want to switch image source.
#
# Optional custom ports
# FRONTEND_PORT=8888
# BACKEND_PORT=127.0.0.1:5000
# DB_PORT=127.0.0.1:5432
# PostgreSQL image/data overrides.
# Default compose now uses postgres:18.3-alpine with PGDATA=/var/lib/postgresql/18/docker.
# To reuse an existing 1Panel PostgreSQL 18 data directory, stop the old DB first,
# then point POSTGRES_DATA_SOURCE to the host directory that contains PG_VERSION.
# Example for 1Panel PostgreSQL with:
# host mount: /opt/1panel/apps/postgresql/postgresql/data -> /var/lib/postgresql
# PGDATA: /var/lib/postgresql/18/docker
# use:
# POSTGRES_IMAGE=postgres:18.3-alpine
# POSTGRES_DATA_SOURCE=/opt/1panel/apps/postgresql/postgresql/data/18/docker
# POSTGRES_PGDATA=/var/lib/postgresql/18/docker
# POSTGRES_USER=user_from_old_container
# POSTGRES_PASSWORD=password_from_old_container
# POSTGRES_DB=quantdinger
# Global image source switch
# Leave empty for official Docker Hub:
# IMAGE_PREFIX=
#
# Common alternatives (pick one, keep trailing slash):
# IMAGE_PREFIX=docker.m.daocloud.io/library/
# IMAGE_PREFIX=docker.xuanyuan.me/library/
#
# Important:
# - This file lives in the project root and is used by docker-compose build/pull.
# - `backend_api_python/.env` is runtime config for the backend container only.
# - `IMAGE_PREFIX` applies to postgres, redis, backend base image, and frontend nginx.
# - For slow `docker pull` of base images, use IMAGE_PREFIX or Docker
# Desktop → Settings → Docker Engine → registry-mirrors (e.g. daocloud).
# Backend Dockerfile region switch (used by docker-compose.yml build):
# global = use Debian/PyPI official sources directly, skip Aliyun entirely (default)
# cn = use Aliyun apt/PyPI mirrors with fallback to official
# BUILD_REGION=global
# ----- Image tags (consumed by both docker-compose.yml and docker-compose.ghcr.yml) -----
#
# Resolution order (highest precedence first):
# BACKEND_TAG / FRONTEND_TAG → IMAGE_TAG → compose file default (latest)
#
# Default: compose pulls ghcr.io/.../quantdinger-*:latest on every `up` (pull_policy: always).
# Uncomment to pin a release (GHCR semver tags omit the leading "v", e.g. v3.0.10 → 3.0.10):
# IMAGE_TAG=3.0.10
#
# Advanced — decouple sides (e.g. frontend hotfix against stable backend):
# FRONTEND_TAG=3.0.11
# BACKEND_TAG=3.0.10
#
# Override the GHCR image paths (e.g. for forks):
# BACKEND_IMAGE=ghcr.io/brokermr810/quantdinger-backend
# FRONTEND_IMAGE=ghcr.io/brokermr810/quantdinger-frontend