add tips about compose.override.yml
This commit is contained in:
parent
f862c78de5
commit
d582b4f892
3 changed files with 14 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,6 +2,7 @@
|
|||
.venv
|
||||
/.env
|
||||
/neodb.env
|
||||
/compose.override.yml
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
|
|
@ -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:
|
||||
|
@ -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:
|
||||
|
|
|
@ -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`:
|
||||
|
|
Loading…
Add table
Reference in a new issue