frappe/frappe_docker

Name: frappe_docker

Owner: Frappe

Description: Docker image for frappe-bench

Created: 2017-08-03 11:10:41.0

Updated: 2018-05-09 20:26:12.0

Pushed: 2018-05-04 18:10:22.0

Homepage:

Size: 8653

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

frappe_docker

Build Status

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Docker

Docker Compose

Container Configuration
ports:
s:
  - "3307:3307"   mariadb-port
  - "8000:8000"   webserver-port
  - "11000:11000" redis-cache
  - "12000:12000" redis-queue
  - "13000:13000" redis-socketio
  - "9000:9000"   socketio-port
  - "6787:6787"   file-watcher-port

Expose port 3307 inside the container on port 3307 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. The port 3307 of the mariadb container and port 8000 of the frappe container is exposed to the host machine and other containers.

volumes:
mes:
 - ./frappe-bench:/home/frappe/frappe-bench
 - ./conf/mariadb-conf.d:/etc/mysql/conf.d
 - ./redis-conf/redis_socketio.conf:/etc/conf.d/redis.conf
 - ./redis-conf/redis_queue.conf:/etc/conf.d/redis.conf
 - ./redis-conf/redis_cache.conf:/etc/conf.d/redis.conf

Exposes a directory inside the host to the container.

links:
s:
  - redis-cache
  - redis-queue
  - redis-socketio
  - mariadb

Links allow you to define extra aliases by which a service is reachable from another service.

depends_on:
nds_on:
  - mariadb
  - redis-cache
  - redis-queue
  - redis-socketio

Express dependency between services, which has two effects:

  1. docker-compose up will start services in dependency order. In the following example, mariadb and redis will be started before frappe.

  2. docker-compose up SERVICE will automatically include SERVICE?s dependencies. In the following example, docker-compose up docker_frappe will also create and start mariadb and redis.

Installation
1. Installation Pre-requisites 2. Build the container and install bench Basic Usage Make sure your current directory is frappe_docker
  1. First time setup

    ./dbench init
    
  2. Command to start all the containers

    docker-compose start
    
  3. Command to be executed everytime after starting your containers

    ./dbench -s
    
  4. Command to enter your container

    docker exec -it frappe bash 
    
  5. All bench commands can also be directly run from the host machine by using dbench. For instance `bench startcan be executed by running ``./dbench -c start`. Just preface the option with <b>./dbench -c</b>. For more information on dbench run the command./dbench -h``.

For more info on how to build this docker container refer to this Wiki

To login to Frappe / ERPNext, open your browser and go to [your-external-ip]:8000, probably localhost:8000

The default username is “Administrator” and password is what you set when you created the new site. The default admin password is set in common_site_config.json, and is set to 'admin' in this docker image.

Built With
Contributing

Feel free to contribute to this project and make the container better

License

This project is licensed under the MIT License - see the LICENSE.md file for details


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.