-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.fast.yml
More file actions
156 lines (150 loc) · 3.89 KB
/
Copy pathdocker-compose.fast.yml
File metadata and controls
156 lines (150 loc) · 3.89 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
services:
healthcare:
build:
context: .
dockerfile: shared/api.Dockerfile
target: builder
volumes:
- ./core/healthcare:/app
- pip-cache:/root/.cache/pip
ports:
- "8002:8002"
environment:
- PORT=8002
- HOST=0.0.0.0
- ALLOW_IFRAME=true
- CORS_ORIGINS=*
- FLASK_ENV=development
- FLASK_DEBUG=1
- PYTHONUNBUFFERED=1
command: >
sh -c "
echo 'Starting Healthcare service...' &&
sleep 10 &&
python -m uvicorn api.main:app --host 0.0.0.0 --port 8002 --reload --reload-dir /app --log-level debug
"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8002/health > /dev/null 2>&1 || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
depends_on:
model-registry:
condition: service_healthy
compliance:
condition: service_healthy
model-registry:
build:
context: .
dockerfile: shared/model_registry.Dockerfile
target: builder
volumes:
- ./core/model_registry:/app
- pip-cache:/root/.cache/pip
ports:
- "8000:8000"
environment:
- PORT=8000
- HOST=0.0.0.0
- ALLOW_IFRAME=true
- CORS_ORIGINS=*
- PYTHONUNBUFFERED=1
command: >
sh -c "
echo 'Starting Model Registry service...' &&
sleep 5 &&
python -m uvicorn api.main:app --host 0.0.0.0 --port 8000 --reload --reload-dir /app --log-level debug
"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8000/health > /dev/null 2>&1 || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
compliance:
build:
context: .
dockerfile: shared/api.Dockerfile
target: builder
volumes:
- ./core/compliance:/app
- pip-cache:/root/.cache/pip
ports:
- "8001:8001"
environment:
- PORT=8001
- HOST=0.0.0.0
- ALLOW_IFRAME=true
- CORS_ORIGINS=*
- PYTHONUNBUFFERED=1
command: >
sh -c "
echo 'Starting Compliance service...' &&
sleep 5 &&
python -m uvicorn audit.main:app --host 0.0.0.0 --port 8001 --reload --reload-dir /app --log-level debug
"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8001/health > /dev/null 2>&1 || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
frontend:
build:
context: services/frontend
dockerfile: Dockerfile
volumes:
- ./services/frontend:/app
- node-modules:/app/node_modules
- npm-cache:/root/.npm
ports:
- "52209:52209"
environment:
- PORT=52209
- HOST=0.0.0.0
- NODE_ENV=development
- VITE_API_URL=http://localhost:8002
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
command: >
sh -c "
echo 'Starting Frontend service...' &&
sleep 15 &&
npm run dev -- --port 52209 --host 0.0.0.0
"
depends_on:
healthcare:
condition: service_healthy
grafana:
image: grafana/grafana:latest
volumes:
- ./config/grafana/grafana.ini:/etc/grafana/grafana.ini
- grafana-data:/var/lib/grafana
ports:
- "3001:3001"
environment:
- GF_SERVER_HTTP_PORT=3001
- GF_SECURITY_ALLOW_EMBEDDING=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://localhost:3001/api/health || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
depends_on:
healthcare:
condition: service_healthy
volumes:
pip-cache:
node-modules:
npm-cache:
grafana-data:
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1400