2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-09-18 18:19:02 +00:00

refactor: Disable PostgreSQL by default, fixes #317

This commit is contained in:
Hendy Irawan 2020-08-01 12:26:03 +07:00
parent 5a756ce2fa
commit 55e4a53d5b
2 changed files with 12 additions and 8 deletions

View File

@ -9,13 +9,14 @@ services:
- ../installation/frappe-mariadb.cnf:/etc/mysql/conf.d/frappe.cnf
- mariadb-vol:/var/lib/mysql
postgresql:
image: postgres:11.8
restart: on-failure
environment:
- POSTGRES_PASSWORD=123
volumes:
- postgresql-vol:/var/lib/postgresql/data
# Enable PostgreSQL only if you use it, see development/README.md for more information.
# postgresql:
# image: postgres:11.8
# restart: on-failure
# environment:
# - POSTGRES_PASSWORD=123
# volumes:
# - postgresql-vol:/var/lib/postgresql/data
redis-cache:
image: redis:alpine

View File

@ -24,7 +24,10 @@ cd frappe_docker
## Use VSCode Remote Containers extension
For most people getting started with Frappe development, the best solution is to use [ VSCode Remote - Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
For most people getting started with Frappe development, the best solution is to use [VSCode Remote - Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
Before opening the folder in container, determine the database that you want to use. The default is MariaDB.
If you want to use PostgreSQL instead, edit `.devcontainer/docker-compose.yml` and uncomment the section for `postgresql` service, and you may also want to comment `mariadb` as well.
VSCode should automatically inquire you to install the required extensions, that can also be installed manually as follows: