2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-23 02:28:57 +00:00

docs: use additional service during development (#758)

This commit is contained in:
Revant Nandgaonkar 2022-04-06 05:08:26 +05:30 committed by GitHub
parent f39fe05fca
commit ba1902ad80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.