Skip to content

Commit be6bcb8

Browse files
committed
feat: Switch to SQLite database and add persistent disk
1 parent b8b0ff3 commit be6bcb8

1 file changed

Lines changed: 8 additions & 33 deletions

File tree

render.yaml

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ services:
1616
healthCheckPath: /health
1717
buildCommand: echo "Building with Docker..."
1818
startCommand: bun run --cwd server-ts start
19+
disk:
20+
name: sqlite-data
21+
mountPath: /app/server-ts/data
22+
sizeGB: 1
1923
envVars:
2024
- key: NODE_ENV
2125
value: production
@@ -24,31 +28,9 @@ services:
2428
- key: IS_SSR
2529
value: "true"
2630
- key: DATABASE_TYPE
27-
value: postgres
28-
- key: DATABASE_URL
29-
fromDatabase:
30-
name: example-postgres-db
31-
property: connectionString
32-
- key: POSTGRES_HOST
33-
fromDatabase:
34-
name: example-postgres-db
35-
property: host
36-
- key: POSTGRES_PORT
37-
fromDatabase:
38-
name: example-postgres-db
39-
property: port
40-
- key: POSTGRES_DATABASE
41-
fromDatabase:
42-
name: example-postgres-db
43-
property: database
44-
- key: POSTGRES_USERNAME
45-
fromDatabase:
46-
name: example-postgres-db
47-
property: user
48-
- key: POSTGRES_PASSWORD
49-
fromDatabase:
50-
name: example-postgres-db
51-
property: password
31+
value: sqlite
32+
- key: SQLITE_DATABASE_PATH
33+
value: ./server-ts/data/database.sqlite
5234
- key: JWT_SECRET
5335
generateValue: true
5436
- key: JWT_REFRESH_SECRET
@@ -59,14 +41,7 @@ services:
5941
value: 7d
6042
- fromGroup: app-config
6143

62-
databases:
63-
- name: example-postgres-db
64-
databaseName: example_react_db
65-
user: postgres
66-
plan: starter
67-
ipAllowList:
68-
- source: 0.0.0.0/0
69-
description: allow all connections
44+
# No external database needed - using SQLite file-based database
7045

7146
envVarGroups:
7247
- name: app-config

0 commit comments

Comments
 (0)