-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 1.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '3.8'
services:
ipmi-api:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "8080:8080"
environment:
- LOG_LEVEL=debug
- IPMI_API_HOST=0.0.0.0
- IPMI_API_PORT=8080
# Optional defaults - uncomment and configure as needed
# - DEFAULT_IPMI_HOST=your.ipmi.host
# - DEFAULT_IPMI_USERNAME=admin
# - DEFAULT_IPMI_PASSWORD=password
volumes:
- .:/app
- /app/tmp
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
labels:
# Traefik configuration (if using Traefik)
- "traefik.enable=true"
- "traefik.http.routers.ipmi-api.rule=Host(`ipmi-api.example.com`)"
- "traefik.http.routers.ipmi-api.entrypoints=websecure"
- "traefik.http.routers.ipmi-api.tls.certresolver=letsencrypt"
- "traefik.http.services.ipmi-api.loadbalancer.server.port=8080"