41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
image: ${REGISTRY:-localhost:9988}/${NAMESPACE:-leeexin}/license-manager-backend:${VERSION:-latest}
|
|
container_name: license-manager-backend
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
- GIN_MODE=release
|
|
ports:
|
|
- "18888:18888"
|
|
volumes:
|
|
- ./backend/configs:/app/backend/configs
|
|
- ./logs:/app/logs
|
|
- ./backend/configs/config.prod.yaml:/app/backend/cmd/config.yaml:ro
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -fsS http://localhost:18888/health || exit 1"]
|
|
interval: 10s
|
|
timeout: 10s
|
|
retries: 6
|
|
start_period: 60s
|
|
|
|
frontend:
|
|
image: ${REGISTRY:-localhost:9988}/${NAMESPACE:-leeexin}/license-manager-frontend:${VERSION:-latest}
|
|
container_name: license-manager-frontend
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
ports:
|
|
- "18080:80"
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -fsS http://localhost/ || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|