mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 17:26:23 +02:00
Merge pull request #96 from cubxxw/feat/optimize-docker-compose
refactor: remove frontend and backend services
This commit is contained in:
commit
f291f441c0
6 changed files with 247 additions and 59 deletions
|
|
@ -133,7 +133,7 @@ For other LLM providers, refer to the [LiteLLM documentation](https://docs.litel
|
|||
**Linux/macOS/Windows:**
|
||||
|
||||
```bash
|
||||
docker-compose up --build
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
To run in detached mode (in the background):
|
||||
|
|
@ -141,10 +141,10 @@ For other LLM providers, refer to the [LiteLLM documentation](https://docs.litel
|
|||
**Linux/macOS/Windows:**
|
||||
|
||||
```bash
|
||||
docker-compose up -d
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
**Note for Windows users:** If you're using older Docker Desktop versions, you might need to use `docker compose` (with a space) instead of `docker-compose`.
|
||||
**Note for Windows users:** If you're using older Docker Desktop versions, you might need to use `docker compose` (with a space) instead of `docker compose`.
|
||||
|
||||
3. **Access the Applications**
|
||||
|
||||
|
|
@ -180,7 +180,7 @@ pgAdmin is included in the Docker setup to help manage your PostgreSQL database.
|
|||
**Linux/macOS/Windows:**
|
||||
|
||||
```bash
|
||||
docker-compose down
|
||||
docker compose down
|
||||
```
|
||||
|
||||
- **View logs:**
|
||||
|
|
@ -189,12 +189,12 @@ pgAdmin is included in the Docker setup to help manage your PostgreSQL database.
|
|||
|
||||
```bash
|
||||
# All services
|
||||
docker-compose logs -f
|
||||
docker compose logs -f
|
||||
|
||||
# Specific service
|
||||
docker-compose logs -f backend
|
||||
docker-compose logs -f frontend
|
||||
docker-compose logs -f db
|
||||
docker compose logs -f backend
|
||||
docker compose logs -f frontend
|
||||
docker compose logs -f db
|
||||
```
|
||||
|
||||
- **Restart a specific service:**
|
||||
|
|
@ -202,7 +202,7 @@ pgAdmin is included in the Docker setup to help manage your PostgreSQL database.
|
|||
**Linux/macOS/Windows:**
|
||||
|
||||
```bash
|
||||
docker-compose restart backend
|
||||
docker compose restart backend
|
||||
```
|
||||
|
||||
- **Execute commands in a running container:**
|
||||
|
|
@ -211,10 +211,10 @@ pgAdmin is included in the Docker setup to help manage your PostgreSQL database.
|
|||
|
||||
```bash
|
||||
# Backend
|
||||
docker-compose exec backend python -m pytest
|
||||
docker compose exec backend python -m pytest
|
||||
|
||||
# Frontend
|
||||
docker-compose exec frontend pnpm lint
|
||||
docker compose exec frontend pnpm lint
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue