43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
# =============================================
|
|
# Print Service Docker Compose 部署配置
|
|
# =============================================
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
print-service:
|
|
image: erp-java-backend/print-service:1.0.0
|
|
container_name: erp-print-service
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8089:8089"
|
|
environment:
|
|
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE:-dev}
|
|
- DB_HOST=${DB_HOST:-111.229.80.149}
|
|
- DB_PORT=${DB_PORT:-3306}
|
|
- DB_NAME=${DB_NAME:-erp_db}
|
|
- DB_USER=${DB_USER:-root}
|
|
- DB_PASSWORD=${DB_PASSWORD:-nihao588+}
|
|
- REDIS_HOST=${REDIS_HOST:-111.229.80.149}
|
|
- REDIS_PORT=${REDIS_PORT:-6379}
|
|
- REDIS_PASSWORD=${REDIS_PASSWORD:-Y(@r5tGk9$Lp2}
|
|
- NACOS_HOST=${NACOS_HOST:-111.229.80.149}
|
|
- NACOS_PORT=${NACOS_PORT:-8848}
|
|
- NACOS_NAMESPACE=${NACOS_NAMESPACE:-public}
|
|
- PRINT_SERVICE_PORT=8089
|
|
volumes:
|
|
- ./logs:/app/logs
|
|
- ./config:/app/config
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8089/actuator/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|
|
networks:
|
|
- erp-network
|
|
|
|
networks:
|
|
erp-network:
|
|
external: true
|