-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathokteto.yml
77 lines (71 loc) · 1.39 KB
/
okteto.yml
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
name: glassDetection
# The build section defines how to build the images of your development environment
# More info: https://www.okteto.com/docs/reference/manifest/#build
build:
api:
context: .
dockerfile: app/Dockerfile
image: amt2k10/glassesdetection:api
frontend:
context: .
dockerfile: app_frontend/Dockerfile
image: amt2k10/glassesdetection:frontend
deploy:
compose:
file: docker-compose.yml
services:
- api
- frontend
- prometheus
- grafana
dev:
api:
image: amt2k10/glassesdetection:api
command: bash
workdir: /app
sync:
- .:/app
forward:
- 8000:8000
reverse:
- 9000:9000
volumes:
- /root/.cache/pip
frontend:
image: amt2k10/glassesdetection:frontend
command: bash
workdir: /app
sync:
- .:/app
forward:
- 8001:8001
reverse:
- 9000:9000
volumes:
- /root/.cache/pip
grafana:
command: bash
workdir: /usr/share/grafana
securityContext:
runAsUser: 472
sync:
- .:/usr/share/grafana
forward:
- 3000:3000
reverse:
- 9000:9000
volumes:
- /root/.cache/pip
prometheus:
command: bash
workdir: /prometheus
securityContext:
runAsUser: 65534
sync:
- .:/prometheus
forward:
- 9090:9090
reverse:
- 9000:9000
volumes:
- /root/.cache/pip