Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 17m30s
33 lines
851 B
YAML
33 lines
851 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
|
|
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 |