feat: 把估价智能体和部署配置提交到主分支
门户估价对话、会员与智能体账号,以及生产 Docker 部署一直停在工作区,远端主分支还没有这些改动。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
6519682885
commit
9c7c80e194
78 files changed
+16614
-345
No files matched your search
@@ -0,0 +1,215 @@
|
||||
name: gsfdc
|
||||
|
||||
x-logging: &logging
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.0
|
||||
container_name: gsfdc-mysql
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
logging: *logging
|
||||
environment:
|
||||
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
||||
MYSQL_USER: ${MYSQL_USER}
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
TZ: Asia/Shanghai
|
||||
command:
|
||||
- --character-set-server=utf8mb4
|
||||
- --collation-server=utf8mb4_unicode_ci
|
||||
volumes:
|
||||
- ${DATA_ROOT}/mysql:/var/lib/mysql
|
||||
- ./mysql/my.cnf:/etc/mysql/conf.d/gsfdc.cnf:ro
|
||||
shm_size: 256m
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -uroot -p\"$$MYSQL_ROOT_PASSWORD\" --silent"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
start_period: 40s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 1400M
|
||||
networks:
|
||||
- gsfdc
|
||||
|
||||
redis:
|
||||
image: redis:7.4-alpine
|
||||
container_name: gsfdc-redis
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
logging: *logging
|
||||
command:
|
||||
- redis-server
|
||||
- --appendonly
|
||||
- "yes"
|
||||
- --maxmemory
|
||||
- 128mb
|
||||
- --maxmemory-policy
|
||||
- allkeys-lru
|
||||
- --requirepass
|
||||
- ${REDIS_PASSWORD}
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
volumes:
|
||||
- ${DATA_ROOT}/redis:/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "REDISCLI_AUTH=\"$$REDIS_PASSWORD\" redis-cli ping | grep -q PONG"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 20
|
||||
start_period: 10s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 192M
|
||||
networks:
|
||||
- gsfdc
|
||||
|
||||
minio:
|
||||
image: minio/minio:latest
|
||||
container_name: gsfdc-minio
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
logging: *logging
|
||||
command: ["server", "/data", "--console-address", ":9001"]
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
|
||||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
|
||||
TZ: Asia/Shanghai
|
||||
volumes:
|
||||
- ${DATA_ROOT}/minio:/data
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 384M
|
||||
networks:
|
||||
- gsfdc
|
||||
|
||||
server:
|
||||
image: gsfdc-server:${IMAGE_TAG}
|
||||
container_name: gsfdc-server
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
logging: *logging
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
DATABASE_URL: mysql+pymysql://${MYSQL_USER}:${MYSQL_PASSWORD}@mysql:3306/${MYSQL_DATABASE}?charset=utf8mb4
|
||||
MYSQL_HOST: mysql
|
||||
MYSQL_PORT: "3306"
|
||||
MYSQL_USER: ${MYSQL_USER}
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: "6379"
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
||||
MINIO_ENDPOINT: minio:9000
|
||||
MINIO_SECURE: "false"
|
||||
MINIO_ACCESS_KEY: ${MINIO_ROOT_USER}
|
||||
MINIO_SECRET_KEY: ${MINIO_ROOT_PASSWORD}
|
||||
MINIO_BUCKET_PUBLIC: gsfdc-public
|
||||
MINIO_BUCKET_PRIVATE: gsfdc-private
|
||||
MINIO_PUBLIC_ENDPOINT: ${FILES_DOMAIN}
|
||||
MINIO_PUBLIC_SECURE: ${MINIO_PUBLIC_SECURE}
|
||||
MINIO_BASE_URL: ${MINIO_BASE_URL}
|
||||
TRUST_PROXY: "true"
|
||||
EXPOSE_DOCS: "false"
|
||||
API_PAYLOAD_ENCRYPT: "false"
|
||||
CORS_ORIGINS: ${CORS_ORIGINS}
|
||||
JWT_SECRET: ${JWT_SECRET}
|
||||
FIELD_AES_KEY: ${FIELD_AES_KEY}
|
||||
UVICORN_WORKERS: "1"
|
||||
TZ: Asia/Shanghai
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
minio:
|
||||
condition: service_started
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/site/health', timeout=3)"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
start_period: 50s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 768M
|
||||
networks:
|
||||
- gsfdc
|
||||
|
||||
portal:
|
||||
image: gsfdc-portal:${IMAGE_TAG}
|
||||
container_name: gsfdc-portal
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
logging: *logging
|
||||
environment:
|
||||
HOST: 0.0.0.0
|
||||
PORT: "3000"
|
||||
NITRO_HOST: 0.0.0.0
|
||||
NITRO_PORT: "3000"
|
||||
NODE_ENV: production
|
||||
NODE_OPTIONS: --max-old-space-size=384
|
||||
NUXT_API_BASE: http://server:8000/api/site
|
||||
NUXT_PUBLIC_API_BASE: /api/site
|
||||
TZ: Asia/Shanghai
|
||||
depends_on:
|
||||
server:
|
||||
condition: service_started
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:3000/').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
start_period: 25s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 640M
|
||||
networks:
|
||||
- gsfdc
|
||||
|
||||
web:
|
||||
image: gsfdc-web:${IMAGE_TAG}
|
||||
container_name: gsfdc-web
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
logging: *logging
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./nginx/active.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
- ./certbot:/var/www/certbot:ro
|
||||
depends_on:
|
||||
portal:
|
||||
condition: service_started
|
||||
server:
|
||||
condition: service_started
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/admin/"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
start_period: 10s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 128M
|
||||
networks:
|
||||
- gsfdc
|
||||
|
||||
networks:
|
||||
gsfdc:
|
||||
name: gsfdc
|
||||
Reference in new issue
Block a user