added sleep instead of true containers in compose

This commit is contained in:
Yannic Kilcher
2022-12-29 00:38:12 +01:00
parent d9aeef0d7e
commit 0ee3196064
4 changed files with 8 additions and 9 deletions
+4 -4
View File
@@ -1,14 +1,14 @@
version: "3.7"
services:
# Use `docker compose up backend-dev` to start a database and work and the backend.
# Use `docker compose up backend-dev --build --attach-dependencies` to start a database and work and the backend.
backend-dev:
image: tianon/true
image: sverrirab/sleep
depends_on: [db, adminer]
# Use `docker compose up frontend-dev` to start all services needed to work on the frontend.
# Use `docker compose up frontend-dev --build --attach-dependencies` to start all services needed to work on the frontend.
frontend-dev:
image: tianon/true
image: sverrirab/sleep
depends_on: [db, webdb, adminer, maildev, backend]
# This DB is for the FastAPI Backend.
+1 -1
View File
@@ -1,6 +1,6 @@
# Backend Development Setup
In root directory, run `docker compose up backend-dev` to start a database. The default settings are already configured to connect to the database at `localhost:5432`.
In root directory, run `docker compose up backend-dev --build --attach-dependencies` to start a database. The default settings are already configured to connect to the database at `localhost:5432`.
Make sure you have all requirements installed. You can do this by running `pip install -r requirements.txt` inside the `backend` folder and `pip install -e .` inside the `oasst-shared` folder.
Then, run the backend using the `run-local.sh` script. This will start the backend server at `http://localhost:8080`.
+1 -1
View File
@@ -1,5 +1,5 @@
# Frontend Development Setup
In root directory run `docker compose up frontend-dev --build` to start a database and the backend server.
In root directory run `docker compose up frontend-dev --build --attach-dependencies` to start a database and the backend server.
Then, point your frontend at `http://localhost:8080` to start developing. During development, any API key will be accepted.
+2 -3
View File
@@ -49,9 +49,8 @@ installed:
If you're doing active development we suggest the following workflow:
1. In one tab, navigate to
`${OPEN_ASSISTANT_ROOT}/scripts/frontend-development`.
1. Run `docker compose up --build`. You can optionally include `-d` to detach and
1. In one tab, navigate to the project root.
1. Run `docker compose up frontend-dev --build --attach-dependencies`. You can optionally include `-d` to detach and
later track the logs if desired.
1. In another tab navigate to `${OPEN_ASSISTANT_ROOT/website`.
1. Run `npm install`