@@ -19,10 +19,11 @@ curl -fsSL https://memoh.sh | sudo sh
1919The script will:
2020
21211 . Check for Docker and Docker Compose
22- 2 . Prompt for configuration (workspace, data directory, admin credentials, JWT secret, Postgres password, China mirror )
23- 3 . Clone the repository
22+ 2 . Prompt for configuration (workspace, data directory, admin credentials, JWT secret, Postgres password)
23+ 3 . Fetch the latest release tag from GitHub and clone the repository
24244 . Generate ` config.toml ` from the Docker template with your settings
25- 5 . Pull images and start all services
25+ 5 . Pin Docker image versions to the release
26+ 6 . Pull images and start all services
2627
2728** Silent install** (use all defaults, no prompts):
2829
@@ -38,6 +39,20 @@ Defaults when running silently:
3839- JWT secret: auto-generated
3940- Postgres password: ` memoh123 `
4041
42+ ** Install a specific version:**
43+
44+ ``` bash
45+ MEMOH_VERSION=v1.0.0 curl -fsSL https://memoh.sh | sudo sh
46+ ```
47+
48+ ** Use China mainland mirror** (for slow image pulls):
49+
50+ ``` bash
51+ USE_CN_MIRROR=true curl -fsSL https://memoh.sh | sudo sh
52+ ```
53+
54+ > Environment variables can be combined, e.g. ` MEMOH_VERSION=v1.0.0 USE_CN_MIRROR=true curl -fsSL https://memoh.sh | sudo sh `
55+
4156## Manual Install
4257
4358``` bash
@@ -77,17 +92,18 @@ And use the China mirror compose overlay:
7792sudo docker compose -f docker-compose.yml -f docker/docker-compose.cn.yml up -d
7893```
7994
80- The install script handles this automatically when you answer "yes" to the China mirror prompt .
95+ The install script handles this automatically when you set ` USE_CN_MIRROR=true ` .
8196
8297## Access Points
8398
8499After startup:
85100
86- | Service | URL |
87- | ---------------| ------------------------|
88- | Web UI | http://localhost:8082 |
89- | API | http://localhost:8080 |
90- | Agent Gateway | http://localhost:8081 |
101+ | Service | URL |
102+ | -----------------| ------------------------|
103+ | Web UI | http://localhost:8082 |
104+ | API | http://localhost:8080 |
105+ | Agent Gateway | http://localhost:8081 |
106+ | Browser Gateway | http://localhost:8083 |
91107
92108Default login: ` admin ` / ` admin123 ` (change this in ` config.toml ` ).
93109
@@ -105,6 +121,15 @@ docker compose ps # Status
105121docker compose pull && docker compose up -d # Update to latest images
106122```
107123
124+ ## Environment Variables
125+
126+ | Variable | Default | Description |
127+ | --------------------| --------------------| ----------------------------------------------|
128+ | ` POSTGRES_PASSWORD ` | ` memoh123 ` | PostgreSQL password (must match ` postgres.password ` in ` config.toml ` ) |
129+ | ` MEMOH_CONFIG ` | ` ./config.toml ` | Path to the configuration file |
130+ | ` MEMOH_VERSION ` | * (latest release)* | Git tag to install (e.g. ` v1.0.0 ` ). Also pins Docker image versions. |
131+ | ` USE_CN_MIRROR ` | ` false ` | Set to ` true ` to use China mainland mirror for Docker images |
132+
108133## Production Checklist
109134
1101351 . ** Passwords** — Change all default passwords and secrets in ` config.toml `
0 commit comments