Files
light/deploy.yml

33 lines
851 B
YAML
Raw Normal View History

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