Skip to content

Commit

Permalink
add tips about compose.override.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alphatownsman committed Nov 1, 2023
1 parent f862c78 commit d582b4f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.venv
/.env
/neodb.env
/compose.override.yml

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
4 changes: 0 additions & 4 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,6 @@ services:

dev-neodb-web:
<<: *dev-neodb-service
ports:
- "${NEODB_DEV_PORT:-8001}:8000"
command: neodb-manage runserver 0.0.0.0:8000

dev-neodb-worker:
Expand All @@ -235,8 +233,6 @@ services:

dev-takahe-web:
<<: *dev-neodb-service
ports:
- "${TAKAHE_DEV_PORT:-8002}:8000"
command: takahe-manage runserver 0.0.0.0:8000

dev-takahe-stator:
Expand Down
13 changes: 13 additions & 0 deletions doc/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,19 @@ Note:

To run local unit tests, use `docker compose run dev-shell neodb-manage test`

To expose the neodb and takahe web server directly, in the folder for configuration, create `compose.override.yml` with the following content:

```
services:
dev-neodb-web:
ports:
- "8001:8000"
dev-takahe-web:
ports:
- "8002:8000"
```

Development with Github Codespace
---------------------------------
At the time of writing, docker compose will work in Github Codespace by adding this in `.env`:
Expand Down

0 comments on commit d582b4f

Please sign in to comment.