Files
light/deploy.yml
Doubleyin adb04d34ca
All checks were successful
构建并部署 Spring Boot 应用 / build-and-deploy (push) Successful in 19m57s
修改地址逻辑
2025-10-26 14:20:24 +08:00

34 lines
885 B
YAML

# Deployment configuration for CI/CD pipeline
version: '3.8'
services:
light-delivery-app:
image: light-delivery-app:latest
container_name: light-delivery-container
ports:
- "8443:443" # 将宿主机8443端口映射到容器443端口
environment:
- SPRING_DATASOURCE_PASSWORD=Hu@ng1998!
- KEY_STORE_PASSWORD=k7cP6QLgJDkX
volumes:
- /app/logs:/app/logs
- /etc/ssl/certs:/etc/ssl/certs:ro
- /app/avatars:/app/avatars
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- light-network
healthcheck:
test: ["CMD", "wget", "--no-check-certificate", "-qO-", "https://localhost:443/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
light-network:
driver: bridge