-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchitect.yml
64 lines (58 loc) · 1.38 KB
/
architect.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
version: v2
databases:
main:
type: postgres:15
dependencies:
kratos:
component: architectio/kratos
variables:
allowed_return_urls:
- ${{ ingresses.app.url }}
builds:
frontend:
context: ./
debug:
dockerfile: Dockerfile.dev
deployments:
frontend:
image: ${{ builds.frontend.id }}
environment:
DB_URL: ${{ databases.main.url }}
KRATOS_ADDR: ${{ dependencies.kratos.services.kratos-public.url }}
KRATOS_ADMIN_ADDR: ${{ dependencies.kratos.services.kratos-admin.url }}
NEXT_PUBLIC_SELF_ADDR: ${{ ingresses.app.url }}
NEXT_PUBLIC_KRATOS_ADDR: ${{ dependencies.kratos.ingresses.kratos-public.url }}
NEXT_PUBLIC_USER_SERVICE_ADDR: ${{ dependencies.kratos.ingresses.auth.url }}
command:
- sh
- -c
- |
npx prisma migrate deploy
node server.js
debug:
command:
- sh
- -c
- |
npx prisma db push
npm run dev
volumes:
app:
host_path: ./app
mount_path: /app/app
store:
host_path: ./store
mount_path: /app/store
public:
host_path: ./public
mount_path: /app/public
prisma:
host_path: ./prisma
mount_path: /app/prisma
services:
frontend:
deployment: frontend
port: 3000
ingresses:
app:
service: frontend