优化体验,新增多项功能,美化界面
This commit is contained in:
+12
-18
@@ -1,4 +1,8 @@
|
||||
version: '3.8'
|
||||
x-logging: &default-logging
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "5"
|
||||
|
||||
services:
|
||||
backend:
|
||||
@@ -6,31 +10,20 @@ services:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: dashboard-backend
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- DATABASE_HOST=${DATABASE_HOST:-localhost}
|
||||
- DATABASE_PORT=${DATABASE_PORT:-3306}
|
||||
- DATABASE_NAME=${DATABASE_NAME:-audio}
|
||||
- DATABASE_USER=${DATABASE_USER:-root}
|
||||
- DATABASE_PASSWORD=${DATABASE_PASSWORD:-root123}
|
||||
- APP_NAME=${APP_NAME:-Audio Dashboard API}
|
||||
- APP_ENV=${APP_ENV:-production}
|
||||
- MEILISEARCH_URL=${MEILISEARCH_URL:-http://ip-172-31-22-170.eu-central-1.compute.internal:7700}
|
||||
- MEILISEARCH_API_KEY=${MEILISEARCH_API_KEY:-young9#!UJsD219921031}
|
||||
- MEILISEARCH_INDEX=${MEILISEARCH_INDEX:-models}
|
||||
- AWS_REGION=${AWS_REGION:-eu-central-1}
|
||||
- AWS_S3_OTA_BUCKET=${AWS_S3_OTA_BUCKET:-luxsin-app-bucket}
|
||||
- AWS_S3_MEASUREMENT_BUCKET=${AWS_S3_MEASUREMENT_BUCKET:-luxsin-app-bucket}
|
||||
- OTA_UPLOAD_DIR=${OTA_UPLOAD_DIR:-/data/projects/source}
|
||||
- OTA_X8_PUBLIC_BASE=${OTA_X8_PUBLIC_BASE:-http://am.luxsinaudio.com}
|
||||
- OTA_X9_URL_BASE=${OTA_X9_URL_BASE:-http://source.luxsin.net}
|
||||
# 容器内固定 8000,与 nginx proxy_pass 和 ports 映射一致
|
||||
- PORT=8000
|
||||
- APP_ENV=${APP_ENV:-production}
|
||||
ports:
|
||||
- "8083:8000"
|
||||
restart: unless-stopped
|
||||
logging: *default-logging
|
||||
networks:
|
||||
- audio-network
|
||||
volumes:
|
||||
- /data/projects/source:/data/projects/source
|
||||
- /data/projects/source:/data/projects/source
|
||||
|
||||
frontend:
|
||||
image: nginx:alpine
|
||||
@@ -43,6 +36,7 @@ services:
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
logging: *default-logging
|
||||
networks:
|
||||
- audio-network
|
||||
|
||||
|
||||
Reference in New Issue
Block a user