-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtye.yaml
85 lines (83 loc) · 2.26 KB
/
tye.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
# tye application configuration file
# read all about it at https://github.com/dotnet/tye
#
# when you've given us a try, we'd love to know what you think:
# https://aka.ms/AA7q20u
#
# define global settings here
# name: exampleapp # application name
# registry: exampleuser # dockerhub username or container registry hostname
ingress:
- name: ingress
bindings:
- port: 80
rules:
- path: /auth-server
service: auth-server
- host: websocket.tyitter.com
service: chat-server
- host: api.tyitter.com
service: chat-server-backend
# define multiple services here
containerEngine: docker
# registry: localhost:5000
extensions:
- name: elastic
logPath: ./.logs
services:
- name: chat-server
project: chat-server/chat-server.csproj
bindings:
- protocol: https
port: 11000
connectionString: ${protocol}://${host}:${port}
- name: chat-server-backend
project: chat-server-backend/chat-server-backend.csproj
bindings:
- protocol: https
port: 12000
connectionString: ${protocol}://${host}:${port}
- name: auth-server
image: quay.io/keycloak/keycloak
args: start-dev
env:
- name: KC_DB
value: postgres
- name: KC_DB_URL_HOST
value: postgres
- name: KC_DB_URL_DATABASE
value: postgres
- name: KC_DB_PASSWORD
value: pass@word1
- name: KC_DB_USERNAME
value: postgres
- name: KC_DB_SCHEMA
value: keycloak
- name: KEYCLOAK_ADMIN
value: admin
- name: KEYCLOAK_ADMIN_PASSWORD
value: admin
bindings:
- port: 10000
containerPort: 8080
protocol: http
connectionString: ${protocol}://${host}:${port}
- name: postgres
image: postgres
env:
- name: POSTGRES_PASSWORD
value: "pass@word1"
bindings:
- port: 5432
connectionString: Server=${host};Port=${port};User Id=postgres;Password=${env:POSTGRES_PASSWORD};
volumes:
- source: postgres-storage
target: /var/lib/postgresql/data
- name: frontend
executable: cmd
args: "/c npm run dev"
workingDirectory: ./frontend/
bindings:
- port: 5173
protocol: http
connectionString: ${protocol}://${host}:${port}