cyywl_server/builds/docker-compose-test.yml

34 lines
711 B
YAML
Raw Normal View History

2023-05-16 17:34:03 +08:00
version: "3.9"
services:
yudao-server:
image: ${IMAGE_VERSION}
restart: always
privileged: true
container_name: yudao-server
environment:
TZ: Asia/Shanghai
SPRING_PROFILES_ACTIVE: test
2023-05-16 17:47:16 +08:00
# volumes:
# - /opt/logs/cyywl:/work/projects/yudao-server
2023-05-16 17:34:03 +08:00
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
ports:
2023-05-16 17:47:16 +08:00
- "48080:48080"
2023-05-16 17:34:03 +08:00
deploy:
resources:
limits:
2023-05-16 17:47:16 +08:00
memory: 800MB
2023-05-16 17:34:03 +08:00
healthcheck:
2023-05-18 15:07:11 +08:00
test: ["CMD", "curl", "-f", "http://localhost:48080/actuator/health"]
2023-05-16 17:34:03 +08:00
timeout: 30s
interval: 45s
2023-06-08 14:19:58 +08:00
retries: 3
networks:
- app_net
networks:
app_net:
external: true
name: cyywlnet