generated from bmstu-rsoi/lab4-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathokteto.yml
118 lines (107 loc) · 3.32 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
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
name: rsoi-2022-lab4-deploy-to-k8s-vgilko
# The build section defines how to build the images of your development environment
# More info: https://www.okteto.com/docs/reference/manifest/#build
build:
# You can use the following env vars to refer to this image in your deploy commands:
# - OKTETO_BUILD_CARS_REGISTRY: image registry
# - OKTETO_BUILD_CARS_REPOSITORY: image repo
# - OKTETO_BUILD_CARS_IMAGE: image name
# - OKTETO_BUILD_CARS_SHA: image tag sha256
cars:
context: cars
dockerfile: cars\Dockerfile
image: cars
# You can use the following env vars to refer to this image in your deploy commands:
# - OKTETO_BUILD_GATEWAY_REGISTRY: image registry
# - OKTETO_BUILD_GATEWAY_REPOSITORY: image repo
# - OKTETO_BUILD_GATEWAY_IMAGE: image name
# - OKTETO_BUILD_GATEWAY_SHA: image tag sha256
gateway:
context: gateway
dockerfile: gateway\Dockerfile
image: gateway
# You can use the following env vars to refer to this image in your deploy commands:
# - OKTETO_BUILD_PAYMENT_REGISTRY: image registry
# - OKTETO_BUILD_PAYMENT_REPOSITORY: image repo
# - OKTETO_BUILD_PAYMENT_IMAGE: image name
# - OKTETO_BUILD_PAYMENT_SHA: image tag sha256
payment:
context: payment
dockerfile: payment\Dockerfile
image: payment
# You can use the following env vars to refer to this image in your deploy commands:
# - OKTETO_BUILD_POSTGRES_REGISTRY: image registry
# - OKTETO_BUILD_POSTGRES_REPOSITORY: image repo
# - OKTETO_BUILD_POSTGRES_IMAGE: image name
# - OKTETO_BUILD_POSTGRES_SHA: image tag sha256
postgres:
context: .
dockerfile: Dockerfile
# You can use the following env vars to refer to this image in your deploy commands:
# - OKTETO_BUILD_RENTAL_REGISTRY: image registry
# - OKTETO_BUILD_RENTAL_REPOSITORY: image repo
# - OKTETO_BUILD_RENTAL_IMAGE: image name
# - OKTETO_BUILD_RENTAL_SHA: image tag sha256
rental:
context: rental
dockerfile: rental\Dockerfile
image: rental
# The deploy section defines how to deploy your development environment
# More info: https://www.okteto.com/docs/reference/manifest/#deploy
deploy:
compose:
file: docker-compose.yml
services:
- postgres
- payment
- rental
- cars
- gateway
# The dependencies section defines other git repositories to be deployed as part of your development environment
# More info: https://www.okteto.com/docs/reference/manifest/#dependencies
# dependencies:
# - https://github.com/okteto/sample
# The dev section defines how to activate a development container
# More info: https://www.okteto.com/docs/reference/manifest/#dev
dev:
cars:
image: cars
command: bash
sync:
- .:/usr/src/app
forward:
- 8070:8070
- 9229:9229
gateway:
image: gateway
command: bash
sync:
- .:/usr/src/app
forward:
- 9229:9229
payment:
image: payment
command: bash
sync:
- .:/usr/src/app
forward:
- 8050:8050
- 9229:9229
postgres:
command: sh
sync:
- info/postgres:/docker-entrypoint-initdb.d/
forward:
- 5432:5432
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
rental:
image: rental
command: bash
sync:
- .:/usr/src/app
forward:
- 8060:8060
- 9229:9229