34 lines
712 B
YAML
34 lines
712 B
YAML
version: "3.9"
|
|
services:
|
|
yudao-server:
|
|
image: ${IMAGE_VERSION}
|
|
restart: always
|
|
privileged: true
|
|
container_name: yudao-server
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
SPRING_PROFILES_ACTIVE: prod
|
|
# volumes:
|
|
# - /opt/logs/cyywl:/work/projects/yudao-server
|
|
ulimits:
|
|
nproc: 65535
|
|
nofile:
|
|
soft: 20000
|
|
hard: 40000
|
|
ports:
|
|
- "48080:48080"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 4096MB
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:48080/actuator/health"]
|
|
timeout: 30s
|
|
interval: 45s
|
|
retries: 3
|
|
networks:
|
|
- app_net
|
|
networks:
|
|
app_net:
|
|
external: true
|
|
name: cyywlnet |