# Frappe on Docker [![Build Status](https://travis-ci.com/frappe/frappe_docker.svg)](https://travis-ci.com/frappe/frappe_docker) This is a repo designed to aide setting up frappe/ERPNext on docker. ## Getting Started These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. Unfortunately, this container is not curently suited for a production environment (but we're working towards that goal!). ### Build the container and initialize the bench **Note:** These instructions assume you have both [Docker](https://docs.docker.com/engine/installation) and [Docker Compose](https://docs.docker.com/compose/install/) installed on your system. 1. Clone this repo and change your working directory to it: ```bash git clone https://github.com/frappe/frappe_docker.git cd frappe_docker ``` 2. Build and start the container, and initialize the bench: ```bash ./dbench setup docker ``` **Note:** This will take a while, as docker will now build the container, and frappe will automaticly setup and start. please wait about 5-10 minutes before continuing. 3. Use Frappe: Open your browser to `localhost/login`. Then login using the username `Administrator` and the password `admin`. ### Basic Usage of `./dbench` **IMPORTANT: Always make sure that your current directory is the root directory of the repo (i.e. `frappe_docker/`)** - `./dbench`: Launches you into an interactive shell in the container as the user `frappe`. - `./dbench setup docker [ stop | down ]`: Starts and builds the docker containers using `docker-compose up -d`. - `stop`: Stops the containers with `docker-compose stop`. - `down`: Deletes the containers and the coresponding volumes with `docker-compose down`. - `./dbench -c frappe | root `: Runs a command in the container, as the selected user. - `./dbench -h`: Shows this help message. - `./dbench `: Runs a command in bench (i.e. Running `./dbench new-site site1.local`, will run `bench new-site site1.local` in the container). ## Contributing Feel free to contribute to this project and make it better. ## License This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details