2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-23 10:38:58 +00:00

Update README.md

Former-commit-id: 4bb67b72e4
This commit is contained in:
vishalseshagiri 2017-07-24 17:51:38 +05:30 committed by GitHub
parent 1b0f9c2173
commit fddd98e127

View File

@ -11,28 +11,67 @@ These instructions will get you a copy of the project up and running on your loc
What things you need to install the software and how to install them
[Docker](https://www.docker.com/)
[Docker Compose](https://docs.docker.com/compose/overview/)
### Container Configuration
#### ports:
```
ports:
- "3306:3306"
- "8000:8000"
```
Expose port 3306 inside the container on port 3306 on ALL local host interfaces. In order to bind to only one interface, you may specify the host's IP address as `([<host_interface>:[host_port]])|(<host_port>):<container_port>[/udp]` as defined in the [docker port binding documentation](http://docs.docker.com/userguide/dockerlinks/)
#### volumes:
```
volumes:
- ./frappe:/home/frappe
- ./conf/mariadb-conf.d:/etc/mysql/conf.d
```
Expose a directory inside the host to the container.
#### links:
```
links:
- redis
- mariadb
```
Links another container to the current container. This will add `--link postgres:postgres`
to the options when running the container.
#### depends_on:
```
depends_on:
- mariadb
- redis
```
Express dependency between services, which has two effects:
1. docker-compose up will start services in dependency order. In the following example, db and redis will be started before web.
2. docker-compose up SERVICE will automatically include SERVICEs dependencies. In the following example, docker-compose up web will also create and start db and redis.
### Installing
A step by step series of examples that tell you have to get a development env running
#### 1. Installation Pre-requisites
- Installing Docker Community Edition
- Installing Docker Community Edition (version 17.06.0-ce)
Follow the steps given in [here](https://docs.docker.com/engine/installation)
Docker version 17.06.0-ce, build 02c1d87
- Installing docker-compose(only for Linux users).Docker for Mac, Docker for Windows, and Docker Toolbox include Docker Compose
- Installing docker-compose(only for Linux users).Docker for Mac, Docker for Windows, and Docker Toolbox include Docker Compose (version 1.14.0)
Follow the steps given in [here](https://docs.docker.com/compose/install/)
docker-compose version 1.14.0, build c7bdf9e
#### 2. Build the container and install bench
* Make sure your logged in as root. Build the container and install bench inside the container as a **non root** user