create-terse 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-terse",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "description": "Scaffold and launch a self-hosted Terse instance with one command.",
6
6
  "keywords": [
@@ -17,6 +17,21 @@ services:
17
17
  timeout: 5s
18
18
  retries: 10
19
19
 
20
+ redis:
21
+ image: redis:7-alpine
22
+ container_name: terse-redis
23
+ restart: unless-stopped
24
+ command: ["redis-server", "--maxmemory-policy", "noeviction", "--appendonly", "yes"]
25
+ ports:
26
+ - "${REDIS_PORT:-6379}:6379"
27
+ volumes:
28
+ - terse_redis:/data
29
+ healthcheck:
30
+ test: ["CMD", "redis-cli", "ping"]
31
+ interval: 5s
32
+ timeout: 5s
33
+ retries: 10
34
+
20
35
  backend:
21
36
  image: ${TERSE_IMAGE:-us-central1-docker.pkg.dev/fluid-analogy-473415-c2/public/terse:latest}
22
37
  pull_policy: always
@@ -26,11 +41,14 @@ services:
26
41
  depends_on:
27
42
  postgres:
28
43
  condition: service_healthy
44
+ redis:
45
+ condition: service_healthy
29
46
  env_file:
30
47
  - ./.env
31
48
  environment:
32
49
  DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/${POSTGRES_DB:-terse}
33
50
  LOCAL_DB_URL: file:/data/local.db
51
+ REDIS_URL: redis://redis:6379
34
52
  ports:
35
53
  - "${BACKEND_PORT:-3001}:3001"
36
54
  volumes:
@@ -40,6 +58,27 @@ services:
40
58
  pnpm exec prisma migrate deploy --schema=./prisma/local/schema.prisma &&
41
59
  pnpm run dev:server"
42
60
 
61
+ worker:
62
+ image: ${TERSE_IMAGE:-us-central1-docker.pkg.dev/fluid-analogy-473415-c2/public/terse:latest}
63
+ pull_policy: always
64
+ container_name: terse-worker
65
+ restart: unless-stopped
66
+ working_dir: /workspace/backend
67
+ depends_on:
68
+ postgres:
69
+ condition: service_healthy
70
+ redis:
71
+ condition: service_healthy
72
+ env_file:
73
+ - ./.env
74
+ environment:
75
+ DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/${POSTGRES_DB:-terse}
76
+ LOCAL_DB_URL: file:/data/local.db
77
+ REDIS_URL: redis://redis:6379
78
+ volumes:
79
+ - terse_sqlite:/data
80
+ command: pnpm run dev:worker
81
+
43
82
  frontend:
44
83
  image: ${TERSE_IMAGE:-us-central1-docker.pkg.dev/fluid-analogy-473415-c2/public/terse:latest}
45
84
  pull_policy: always
@@ -57,3 +96,4 @@ services:
57
96
  volumes:
58
97
  terse_postgres:
59
98
  terse_sqlite:
99
+ terse_redis: