Files
light/deploy.yml

34 lines
886 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Deployment configuration for CI/CD pipeline
version: '3.8'
services:
light-delivery-app:
image: light-delivery-app:latest
container_name: light-delivery-container
ports:
- "8080:8080"
- "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
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