-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
42 lines (40 loc) · 925 Bytes
/
compose.yaml
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
include:
- api/compose.yaml
- ui/compose.yaml
services:
generate_openapi_json:
image: curlimages/curl:latest
profiles:
- generate_openapi
volumes:
- ./:/local
command:
- http://api:8080/api
- -o
- /local/openapi.json
depends_on:
api:
condition: service_healthy
restart: true
generate_openapi_client:
image: openapitools/openapi-generator-cli:v6.6.0
profiles:
- generate_openapi
volumes:
- ./:/local
command:
- generate
- --global-property=skipFormModel=false
- --additional-properties=supportsES6=true,modelPropertyNaming=original
- -g
- typescript-axios
- -o
- /local/ui/src/interface
- -i
- /local/openapi.json
depends_on:
api:
condition: service_healthy
restart: true
generate_openapi_json:
condition: service_started