From ba1902ad803a7ccde88551ac70ae3cfbebd96b70 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Wed, 6 Apr 2022 05:08:26 +0530 Subject: [PATCH] docs: use additional service during development (#758) --- development/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/development/README.md b/development/README.md index 46fe1afa..e63980ff 100644 --- a/development/README.md +++ b/development/README.md @@ -266,3 +266,29 @@ And enter the interactive shell for the development container with the following ```shell docker exec -e "TERM=xterm-256color" -w /workspace/development -it devcontainer_frappe_1 bash ``` + +## Use additional services during development + +Add any service that is needed for development in the `.devcontainer/docker-compose.yml` then rebuild and reopen in devcontainer. + +e.g. + +```yaml +... +services: + ... + postgresql: + image: postgres:11.8 + environment: + POSTGRES_PASSWORD: 123 + volumes: + - postgresql-data:/var/lib/postgresql/data + ports: + - 5432:5432 + +volumes: + ... + postgresql-data: +``` + +Access the service by service name from the `frappe` development container. The above service will be accessible via hostname `postgresql`. If ports are published on to host, access it via `localhost:5432`.