2025-09-27 03:32:51 +08:00
|
|
|
# Deployment configuration for CI/CD pipeline
|
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
light-delivery-app:
|
2025-09-29 00:10:22 +08:00
|
|
|
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!
|
2025-09-29 00:10:22 +08:00
|
|
|
- KEY_STORE_PASSWORD=BIKEWZzBVN2J
|
2025-09-27 03:32:51 +08:00
|
|
|
volumes:
|
2025-09-29 00:10:22 +08:00
|
|
|
- /app/logs:/app/logs
|
|
|
|
- /etc/ssl/certs:/etc/ssl/certs:ro
|
2025-09-27 03:32:51 +08:00
|
|
|
restart: unless-stopped
|
2025-09-29 00:10:22 +08:00
|
|
|
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
|