Files
light/deploy.yml

34 lines
794 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:
- "8080:8080"
- "8443:8443"
environment:
- SPRING_DATASOURCE_PASSWORD=Hu@ng1998!
- KEY_STORE_PASSWORD=BIKEWZzBVN2J
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", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
light-network:
driver: bridge