-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.yaml
105 lines (93 loc) · 2.27 KB
/
config.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
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
applications:
main_app:
source:
root: apps/main
stack:
- nodejs@22
- nodePackages.npm
hooks:
build: |
set -e
npm install
npm run setup-env
npm run build
web:
locations:
/:
root: "dist"
passthru: true
index:
- index.html
bun_app:
source:
root: apps/bun
stack:
- bun@1
hooks:
build: |
set -e
bun install
web:
commands:
start: bun start
nodejs_app:
source:
root: apps/nodejs
stack:
- nodejs@22
- nodePackages.npm
hooks:
build: |
set -e
npm install
npm run build
relationships:
database:
web:
commands:
start: npm run start
deno_app:
source:
root: apps/deno
stack:
- deno
variables:
env:
DENO_DIR: "cache"
hooks:
build: |
set -e
deno cache package.json
deno compile --allow-env --allow-net --allow-read main.ts
web:
commands:
start: deno task start
services:
database:
type: mariadb:10.4
routes:
"https://{default}/":
type: upstream
primary: true
upstream: "main_app:http"
"https://www.{default}":
type: redirect
to: "https://{default}/"
"https://{default}/bun":
type: upstream
upstream: "bun_app:http"
"https://www.{default}/bun":
type: redirect
to: "https://{default}/bun"
"https://{default}/nodejs":
type: upstream
upstream: "nodejs_app:http"
"https://www.{default}/nodejs":
type: redirect
to: "https://{default}/nodejs"
"https://{default}/deno":
type: upstream
upstream: "deno_app:http"
"https://www.{default}/deno":
type: redirect
to: "https://{default}/deno"