Files
light/deploy.yml

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