test
This commit is contained in:
@@ -17,23 +17,25 @@ services:
|
||||
environment:
|
||||
- SPRING_PROFILES_ACTIVE=prod
|
||||
- SERVER_PORT=9081
|
||||
- DB_HOST=database
|
||||
- DB_PORT=54321
|
||||
# MySQL数据库配置
|
||||
- DB_HOST=mysql
|
||||
- DB_PORT=3306
|
||||
- DB_NAME=enterprise_digital_archives
|
||||
- DB_USERNAME=system
|
||||
- DB_PASSWORD=12345678ab
|
||||
- DB_USERNAME=root
|
||||
- DB_PASSWORD=Abc@123456
|
||||
- DB_DRIVER=com.mysql.jdbc.Driver
|
||||
# Redis配置
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
- REDIS_PASSWORD=Abc123456
|
||||
# OCR配置
|
||||
- TESS_PATH=/usr/bin/tesseract
|
||||
# 其他配置
|
||||
- SWAGGER_SHOW=false
|
||||
- LOG_ROOT_LEVEL=info
|
||||
- LOG_APP_LEVEL=info
|
||||
depends_on:
|
||||
- database
|
||||
- redis
|
||||
networks:
|
||||
- archive-network
|
||||
- proxy
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:9081/point-strategy/actuator/health"]
|
||||
@@ -42,35 +44,6 @@ services:
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
|
||||
# 人大金仓数据库
|
||||
database:
|
||||
image: kingbase:v8.6.0
|
||||
container_name: digital-archive-db
|
||||
ports:
|
||||
- "54321:54321"
|
||||
environment:
|
||||
- KINGBASE_USER=system
|
||||
- KINGBASE_PASSWORD=12345678ab
|
||||
- KINGBASE_DATABASE=enterprise_digital_archives
|
||||
volumes:
|
||||
- ./data/database:/var/lib/kingbase/data
|
||||
networks:
|
||||
- archive-network
|
||||
restart: unless-stopped
|
||||
|
||||
# Redis缓存
|
||||
redis:
|
||||
image: redis:6-alpine
|
||||
container_name: digital-archive-redis
|
||||
ports:
|
||||
- "6379:6379"
|
||||
command: redis-server --requirepass Abc123456
|
||||
volumes:
|
||||
- ./data/redis:/data
|
||||
networks:
|
||||
- archive-network
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
archive-network:
|
||||
driver: bridge
|
||||
proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user