forked from sap1ens/heimdall
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (68 loc) · 1.91 KB
/
Copy pathdocker-compose.yml
File metadata and controls
73 lines (68 loc) · 1.91 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.8'
services:
# Mock server for frontend development without Kubernetes
mock-server:
image: node:20-alpine
container_name: heimdall-mock-server
working_dir: /app
volumes:
- ./src/main/webui:/app:ro
ports:
- "8080:8080"
command: node mock-server.js
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
networks:
- heimdall
# Frontend development server
frontend:
image: node:20-alpine
container_name: heimdall-frontend
working_dir: /app
volumes:
- ./src/main/webui:/app
- frontend_node_modules:/app/node_modules
ports:
- "5173:5173"
environment:
- VITE_API_URL=http://localhost:8080
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
depends_on:
mock-server:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:5173"]
interval: 10s
timeout: 5s
retries: 3
start_period: 20s
networks:
- heimdall
# Backend (requires building the Quarkus app first)
# Uncomment this section if you want to run the full backend
# backend:
# build:
# context: .
# dockerfile: src/main/docker/Dockerfile.jvm
# container_name: heimdall-backend
# ports:
# - "8080:8080"
# environment:
# - QUARKUS_HTTP_CORS_ORIGINS=http://localhost:5173
# - HEIMDALL_JOBLOCATOR_K8S_OPERATOR_ENABLED=true
# - HEIMDALL_JOBLOCATOR_K8S_OPERATOR_NAMESPACE_TO_WATCH=default
# # Uncomment and configure these if running with real Kubernetes cluster
# # volumes:
# # - ~/.kube/config:/home/jboss/.kube/config:ro
# networks:
# - heimdall
networks:
heimdall:
driver: bridge
volumes:
frontend_node_modules:
driver: local