Public | Automated Build

Last pushed: 2 years ago
Short Description
It is based on "dreamfactorysoftware/dsp-docker" with a bug fix install v8js to server side scripts
Full Description

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

Docker Pull Command
Owner
juniorconte
Source Repository

Comments (0)