mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 08:36:35 +00:00
docs(docker): document SHUMAI_SERVER_PORT and update local docker-compose env
This commit is contained in:
@@ -49,8 +49,10 @@ Docker Compose is the fastest way to get Shumai running. You do not need to clon
|
||||
```bash
|
||||
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/local/docker-compose.yaml
|
||||
```
|
||||
3. **Configure Environment Variables (Remote Deployments only):**
|
||||
If deploying Shumai to a remote server (e.g., AWS EC2, VPS), edit docker-compose.yaml and set `AWS_ENDPOINT_URL_S3` under the environment section to your server's public IP address or domain name along with the mapped port (e.g., `http://12.34.56.78:3000`).
|
||||
3. **Configure Environment Variables (Remote / Custom Port Deployments only):**
|
||||
If exposing Shumai on a custom host/port combination (for example, if you change host port mapping to `12345:3000` in `docker-compose.yaml` and deploy on server `http://12.34.56.78`):
|
||||
- Set `SHUMAI_SERVER_PORT: 3000` (the internal port the app starts on inside the container).
|
||||
- Set `AWS_ENDPOINT_URL_S3: http://12.34.56.78:12345` (the external address including port used by client browsers to upload files).
|
||||
4. Start the services in detached mode:
|
||||
```bash
|
||||
docker compose up -d
|
||||
|
||||
@@ -27,6 +27,9 @@ services:
|
||||
# Database Configuration
|
||||
DATABASE_URL: postgres://shumai:shumai_password@shumai_postgres:5432/shumai_db?search_path=public&sslmode=disable
|
||||
|
||||
# Server Configuration
|
||||
SHUMAI_SERVER_PORT: 3000
|
||||
|
||||
# S3 Configuration
|
||||
STORAGE_BACKEND: local
|
||||
AWS_ENDPOINT_URL_S3: http://localhost:3000
|
||||
|
||||
Reference in New Issue
Block a user