create-mercato-app 0.4.2-canary-d6c641042f → 0.4.2-canary-b3b9723b95
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/dist/index.js +2 -1
- package/package.json +1 -1
- package/template/docker-compose.yml +68 -0
package/dist/index.js
CHANGED
|
@@ -7,7 +7,8 @@ import { join, dirname, basename, resolve } from "node:path";
|
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import pc from "picocolors";
|
|
9
9
|
var __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
|
-
var
|
|
10
|
+
var packageJson = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
|
|
11
|
+
var PACKAGE_VERSION = packageJson.version;
|
|
11
12
|
var TEMPLATE_DIR = join(__dirname, "..", "template");
|
|
12
13
|
function showHelp() {
|
|
13
14
|
console.log(`
|
package/package.json
CHANGED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
services:
|
|
2
|
+
postgres:
|
|
3
|
+
image: pgvector/pgvector:pg17-trixie
|
|
4
|
+
container_name: mercato-postgres
|
|
5
|
+
restart: unless-stopped
|
|
6
|
+
environment:
|
|
7
|
+
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
|
8
|
+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
|
9
|
+
POSTGRES_DB: ${POSTGRES_DB:-open-mercato}
|
|
10
|
+
ports:
|
|
11
|
+
- "${POSTGRES_PORT:-5432}:5432"
|
|
12
|
+
volumes:
|
|
13
|
+
- postgres_data:/var/lib/postgresql/data
|
|
14
|
+
healthcheck:
|
|
15
|
+
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
|
|
16
|
+
interval: 10s
|
|
17
|
+
timeout: 5s
|
|
18
|
+
retries: 5
|
|
19
|
+
networks:
|
|
20
|
+
- mercato-network
|
|
21
|
+
|
|
22
|
+
redis:
|
|
23
|
+
image: redis:7-alpine
|
|
24
|
+
container_name: mercato-redis
|
|
25
|
+
ports:
|
|
26
|
+
- "${REDIS_PORT:-6379}:6379"
|
|
27
|
+
volumes:
|
|
28
|
+
- redis_data:/data
|
|
29
|
+
healthcheck:
|
|
30
|
+
test: ["CMD", "redis-cli", "ping"]
|
|
31
|
+
interval: 10s
|
|
32
|
+
timeout: 5s
|
|
33
|
+
retries: 5
|
|
34
|
+
networks:
|
|
35
|
+
- mercato-network
|
|
36
|
+
|
|
37
|
+
meilisearch:
|
|
38
|
+
image: getmeili/meilisearch:v1.11
|
|
39
|
+
container_name: mercato-meilisearch
|
|
40
|
+
restart: unless-stopped
|
|
41
|
+
environment:
|
|
42
|
+
MEILI_ENV: development
|
|
43
|
+
MEILI_MASTER_KEY: ${MEILISEARCH_MASTER_KEY:-meilisearch-dev-key}
|
|
44
|
+
MEILI_NO_ANALYTICS: "true"
|
|
45
|
+
ports:
|
|
46
|
+
- "${MEILISEARCH_PORT:-7700}:7700"
|
|
47
|
+
volumes:
|
|
48
|
+
- meilisearch_data:/meili_data
|
|
49
|
+
healthcheck:
|
|
50
|
+
test: ["CMD", "curl", "-f", "http://localhost:7700/health"]
|
|
51
|
+
interval: 10s
|
|
52
|
+
timeout: 5s
|
|
53
|
+
retries: 5
|
|
54
|
+
networks:
|
|
55
|
+
- mercato-network
|
|
56
|
+
|
|
57
|
+
volumes:
|
|
58
|
+
postgres_data:
|
|
59
|
+
name: mercato-postgres-data
|
|
60
|
+
redis_data:
|
|
61
|
+
name: mercato-redis-data
|
|
62
|
+
meilisearch_data:
|
|
63
|
+
name: mercato-meilisearch-data
|
|
64
|
+
|
|
65
|
+
networks:
|
|
66
|
+
mercato-network:
|
|
67
|
+
name: mercato-network
|
|
68
|
+
driver: bridge
|