Add non Docker deployment entrypoints
This commit is contained in:
+19
-32
@@ -1,18 +1,18 @@
|
||||
name: ${APP_NAME:-zq-platform}
|
||||
name: ${APP_NAME:-ai-agent-admin}
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: ${APP_NAME:-zq-platform}-postgres
|
||||
container_name: ${APP_NAME:-ai-agent-admin}-postgres
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_DB: ${DB_NAME:-zq_platform}
|
||||
POSTGRES_DB: ${DB_NAME:-ai_agent_admin}
|
||||
POSTGRES_USER: ${DB_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-postgres} -d ${DB_NAME:-zq_platform}"]
|
||||
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-postgres} -d ${DB_NAME:-ai_agent_admin}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -24,7 +24,7 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: ${APP_NAME:-zq-platform}-redis
|
||||
container_name: ${APP_NAME:-ai-agent-admin}-redis
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
@@ -43,8 +43,8 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/backend/Dockerfile
|
||||
image: zq-platform-backend:latest
|
||||
container_name: ${APP_NAME:-zq-platform}-backend
|
||||
image: ai-agent-admin-backend:latest
|
||||
container_name: ${APP_NAME:-ai-agent-admin}-backend
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
postgres:
|
||||
@@ -53,13 +53,13 @@ services:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
ENV: prod
|
||||
APP_NAME: ${APP_NAME:-zq-platform}
|
||||
APP_NAME: ${APP_NAME:-ai-agent-admin}
|
||||
DB_TYPE: postgresql
|
||||
DB_HOST: postgres
|
||||
DB_PORT: 5432
|
||||
DB_USER: ${DB_USER:-postgres}
|
||||
DB_PASSWORD: ${DB_PASSWORD:-postgres}
|
||||
DB_NAME: ${DB_NAME:-zq_platform}
|
||||
DB_NAME: ${DB_NAME:-ai_agent_admin}
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: 6379
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD:-redis123}
|
||||
@@ -75,7 +75,7 @@ services:
|
||||
MINIO_BUCKET_NAME: ${MINIO_BUCKET_NAME:-}
|
||||
MINIO_SECURE: ${MINIO_SECURE:-false}
|
||||
TIMEZONE: ${TIMEZONE:-Asia/Shanghai}
|
||||
CACHE_PREFIX: ${CACHE_PREFIX:-zq-platform:prod:}
|
||||
CACHE_PREFIX: ${CACHE_PREFIX:-ai-agent-admin:prod:}
|
||||
DINGTALK_REDIRECT_URI: ${DINGTALK_REDIRECT_URI:-}
|
||||
DINGTALK_H5_REDIRECT_URI: ${DINGTALK_H5_REDIRECT_URI:-}
|
||||
volumes:
|
||||
@@ -92,10 +92,11 @@ services:
|
||||
context: .
|
||||
dockerfile: docker/web/Dockerfile
|
||||
args:
|
||||
VITE_GLOB_API_URL: /basic-api
|
||||
VITE_APP_TITLE: ${APP_NAME:-zq-platform}
|
||||
image: zq-platform-web:latest
|
||||
container_name: ${APP_NAME:-zq-platform}-web
|
||||
VITE_BASE: /ai-agent-admin/
|
||||
VITE_GLOB_API_URL: /ai-agent-admin/basic-api
|
||||
VITE_APP_TITLE: ${APP_NAME:-AI Agent Admin}
|
||||
image: ai-agent-admin-web:latest
|
||||
container_name: ${APP_NAME:-ai-agent-admin}-web
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- backend
|
||||
@@ -104,29 +105,15 @@ services:
|
||||
networks:
|
||||
- zq-network
|
||||
|
||||
uniapp:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/uniapp/Dockerfile
|
||||
image: zq-platform-uniapp:latest
|
||||
container_name: ${APP_NAME:-zq-platform}-uniapp
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- backend
|
||||
ports:
|
||||
- "${UNIAPP_PORT:-90}:80"
|
||||
networks:
|
||||
- zq-network
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
name: ${APP_NAME:-zq-platform}-postgres-data
|
||||
name: ${APP_NAME:-ai-agent-admin}-postgres-data
|
||||
redis_data:
|
||||
name: ${APP_NAME:-zq-platform}-redis-data
|
||||
name: ${APP_NAME:-ai-agent-admin}-redis-data
|
||||
backend_storage:
|
||||
name: ${APP_NAME:-zq-platform}-backend-storage
|
||||
name: ${APP_NAME:-ai-agent-admin}-backend-storage
|
||||
|
||||
networks:
|
||||
zq-network:
|
||||
name: ${APP_NAME:-zq-platform}-network
|
||||
name: ${APP_NAME:-ai-agent-admin}-network
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user