-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (56 loc) · 1.64 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (56 loc) · 1.64 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: homelab-backend
restart: unless-stopped
network_mode: host
environment:
- PORT=4000
- HOST=0.0.0.0
- CORS_ORIGIN=http://localhost:3000
- DATA_DIR=/data
- MOCK_MODE=${MOCK_MODE:-true}
- PROXMOX_HOST=${PROXMOX_HOST:-}
- PROXMOX_TOKEN_ID=${PROXMOX_TOKEN_ID:-}
- PROXMOX_TOKEN_SECRET=${PROXMOX_TOKEN_SECRET:-}
- PROXMOX_VERIFY_TLS=${PROXMOX_VERIFY_TLS:-false}
- PROXMOX_POLL_INTERVAL_MS=${PROXMOX_POLL_INTERVAL_MS:-5000}
- DOCKER_ENABLED=${DOCKER_ENABLED:-false}
- DOCKER_HOST=${DOCKER_HOST:-/var/run/docker.sock}
- DOCKER_HOST_GUEST=${DOCKER_HOST_GUEST:-docker}
- DOCKER_POLL_INTERVAL_MS=${DOCKER_POLL_INTERVAL_MS:-10000}
- SECRET_ENCRYPTION_KEY=${SECRET_ENCRYPTION_KEY:-}
- ADMIN_INITIAL_PASSWORD=${ADMIN_INITIAL_PASSWORD:-}
volumes:
- homelab-data:/data
- /var/run/docker.sock:/var/run/docker.sock
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/health"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
args:
VITE_BACKEND_URL: "/api"
VITE_WS_URL: ""
container_name: homelab-frontend
restart: unless-stopped
depends_on:
- backend
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "3000:80"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1/"]
interval: 10s
timeout: 3s
retries: 3
volumes:
homelab-data: