A Docker container for the DreamFactory Services Platform
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 5 commits ahead of yoh300:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Dockerfile
README.md
database.config.php
docker-compose.yml
dsp.conf
entrypoint.sh

README.md

Overview

DreamFactory is a free, open source REST API platform for mobile, web, and IoT applications.

Supported tags and respective `Dockerfile links

Setup

Get Docker

Get Docker Compose (optional)

Using MS SQL?

The Docker image we provide does not include PHP drivers for MS SQL. If you need this functionality add the following to the 'apt-get install' line in the Dockerfile and build yourself a new image using the steps below.

php5-sybase php5-odbc freetds-common

Start

Using DockerHub Image

Pull DSP image

  • run docker pull dreamfactorysoftware/dsp-docker

Start the database

  • run docker run -d --name mysql-dsp -e "MYSQL_ROOT_PASSWORD=root" -e "MYSQL_DATABASE=dsp" -e "MYSQL_USER=dsp" -e "MYSQL_PASSWORD=dsp" mysql

Start DSP with linked MySQL database container

  • run docker run -d --link mysql-dsp:db -p 8080:80 --name dsp -e "DB_USER=dsp" -e "DB_PASS=dsp" -e "DB_NAME=dsp" -e "SERVERNAME=localhost" dreamfactorysoftware/dsp-docker

Using Docker Compose

  • edit docker-compose.yml and change values to fit your needs
  • run docker-compose build
  • run docker-compose up -d

Using CLI

All the provided values are defaults and you should change them

Start the database

  • run docker run -d --name mysql-dsp -e "MYSQL_ROOT_PASSWORD=root" -e "MYSQL_DATABASE=dsp" -e "MYSQL_USER=dsp" -e "MYSQL_PASSWORD=dsp" mysql

Build DSP Image

  • run docker build -t dsp:1.9.2 .

Start DSP with linked MySQL database container

  • run docker run -d --link mysql-dsp:db -p 8080:80 --name dsp -e "DB_USER=dsp" -e "DB_PASS=dsp" -e "DB_NAME=dsp" -e "SERVERNAME=localhost" dsp:1.9.2

Start DSP with external MySQL database

  • run docker run -d -e "DB_HOST=db.foo.bar" -e "DB_PORT=3306" --name dsp -e "DB_USER=dsp" -e "DB_PASS=dsp" -e "DB_NAME=dsp" dsp:1.9.2

Access logs

Log files are located at /opt/dreamfactory/platform/logs and /var/log/apache2.

Access from another container

You can access these directories from another container if you use the option --volumes-from dsp.

Access from host machine

Docker Compose

Edit docker-compose.yml and add volumes: section. See docs

CLI

Add -v HOST_PATH:/opt/dreamfactory/platform/logs -v HOST_PATH:/var/log/apache2