45 lines
998 B
YAML
45 lines
998 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
system-tool-service:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: system-tool-service
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8087:8087"
|
|
environment:
|
|
# Database
|
|
DB_HOST: 111.229.80.149
|
|
DB_PORT: 3306
|
|
DB_NAME: erp_db
|
|
DB_USER: root
|
|
DB_PASSWORD: nihao588+
|
|
# Redis
|
|
REDIS_HOST: 111.229.80.149
|
|
REDIS_PORT: 6379
|
|
REDIS_PASSWORD: Y(@r5tGk9$Lp2
|
|
# Nacos
|
|
NACOS_SERVER: 43.226.44.101:8848
|
|
NACOS_NAMESPACE: public
|
|
# Java options
|
|
JAVA_OPTS: -Xms256m -Xmx512m -XX:+UseG1GC
|
|
# Notification (optional)
|
|
DINGTALK_ENABLED: "false"
|
|
DINGTALK_WEBHOOK: ""
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8087/actuator/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|
|
networks:
|
|
- erp-network
|
|
volumes:
|
|
- ./logs:/app/logs
|
|
|
|
networks:
|
|
erp-network:
|
|
external: true
|