-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrender.yaml
More file actions
133 lines (127 loc) · 4.1 KB
/
Copy pathrender.yaml
File metadata and controls
133 lines (127 loc) · 4.1 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: "1"
projects:
- name: Progress RPG
environments:
- name: Production
services:
- type: web
name: web
runtime: docker
repo: https://github.com/progressrpg/ProgressRPG
branch: main
plan: starter
envVars:
- fromGroup: Prod env
region: frankfurt
preDeployCommand: ./scripts/pre-deploy.sh
dockerCommand: daphne -b 0.0.0.0 -p $PORT progress_rpg.asgi:application
dockerContext: .
dockerfilePath: ./Dockerfile
autoDeployTrigger: commit
buildFilter:
ignoredPaths:
- frontend/*
- type: worker
name: celery
runtime: docker
repo: https://github.com/progressrpg/ProgressRPG
branch: main
plan: starter
envVars:
- fromGroup: Prod env
region: frankfurt
dockerCommand: celery -A progress_rpg worker --loglevel=info --concurrency=1 --prefetch-multiplier=1 --max-tasks-per-child=1000
dockerContext: .
dockerfilePath: ./Dockerfile
autoDeployTrigger: commit
buildFilter:
ignoredPaths:
- frontend/*
- type: worker
name: celery-beat
runtime: docker
repo: https://github.com/progressrpg/ProgressRPG
branch: main
plan: starter
envVars:
- fromGroup: Prod env
region: frankfurt
dockerCommand: celery -A progress_rpg beat --loglevel=info --scheduler django_celery_beat.schedulers:DatabaseScheduler --max-interval=30
dockerContext: .
dockerfilePath: ./Dockerfile
autoDeployTrigger: commit
buildFilter:
ignoredPaths:
- frontend/*
- type: keyvalue
name: redis
plan: starter
region: frankfurt
maxmemoryPolicy: allkeys-lru
ipAllowList:
- source: 81.108.41.12/32
- type: pserv
name: pgbouncer
runtime: image
image:
url: docker.io/edoburu/pgbouncer:latest
plan: starter
region: frankfurt
envVars:
- key: DB_HOST
fromDatabase:
name: postgres
property: host
- key: DB_PORT
fromDatabase:
name: postgres
property: port
- key: DB_USER
fromDatabase:
name: postgres
property: user
- key: DB_PASSWORD
fromDatabase:
name: postgres
property: password
- key: DB_NAME
fromDatabase:
name: postgres
property: database
- key: POOL_MODE
value: transaction
- key: MAX_CLIENT_CONN
value: "500"
- key: DEFAULT_POOL_SIZE
value: "20"
- key: LISTEN_PORT
value: "6432"
- key: AUTH_TYPE
value: scram-sha-256
- type: web
name: frontend
runtime: static
repo: https://github.com/progressrpg/ProgressRPG
branch: main
envVars:
- key: NODE_ENV
sync: false
- key: VITE_API_BASE_URL
sync: false
- fromGroup: Prod env
staticPublishPath: dist
buildCommand: npm ci && npm run build:production
routes:
- type: rewrite
source: /*
destination: /index.html
autoDeployTrigger: commit
rootDir: frontend
databases:
- name: postgres
plan: basic-256mb
region: frankfurt
ipAllowList:
- source: 81.108.41.12/32
postgresMajorVersion: "17"
diskSizeGB: 1