Skip to content

Commit

Permalink
doc(api|webui): add docker profiles instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
berdal84 committed Apr 26, 2024
1 parent d2983a4 commit 990a320
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
12 changes: 2 additions & 10 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,11 @@
This project is developed using a GNU/Linux distribution.
Make sure [docker]() and [python 3.12](https://www.makeuseof.com/install-python-ubuntu/) are installed.

From the project root directory, make sure the database service is running:
From the project root directory, make sure all services except api are running:

```
docker compose stop
docker compose up -d db
```

You should now have it running as `seeking-db`, run `docker compose ps` to double check.

```
$ docker compose ps
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
seeking-db postgres:14 "docker-entrypoint.s…" db 35 hours ago Up 2 hours 0.0.0.0:32768->5432/tcp
docker compose --profile no-api up -d
```

### Install the requirements
Expand Down
9 changes: 8 additions & 1 deletion webui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ Prerequisites:

Will run the nextjs app in a development api.

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Make sure the backend services are running by executing these commands from the project root:

```
docker compose down
docker compose --profile no-webui up -d
```

Once done, browse to [http://localhost:3000](http://localhost:3000).

## `npm run build`

Expand Down

0 comments on commit 990a320

Please sign in to comment.