nickbuerger / df-docker

Docker container for DreamFactory.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

df-docker

Docker container for DreamFactory 4.x using Ubuntu 16.04, PHP 7.3 and NGINX.

Prerequisites

Get Docker

Get Docker Compose

Persist MySQL Data

Be sure to either set the APP_KEY value in the docker-compose file or you will receive "The MAC is invalid" errors within your instance.

Configuration method docker-compose

The easiest way to configure the DreamFactory application is to use docker-compose.

1) Clone the df-docker repo

cd ~/repos (or wherever you want the clone of the repo to be)
git clone https://github.com/dreamfactorysoftware/df-docker.git
cd df-docker

2) Edit docker-compose.yml (optional)

3) Build images

docker-compose build

4) Start containers

docker-compose up -d

NOTE: volume df-storage:/opt/dreamfactory/storage is created to store all file based (apps, logs etc.) data from DreamFactory.
This basically stores all data written by DreamFactory (at /opt/dreamfactory/storage location) in the df-storage volume. This 
way if you delete your DreamFactory container your data will persist as long as you don't delete the df-storage volume.

to stop and remove all containers you can use the command 

    docker-compose down

to stop and remove all containers including volumes use 

    docker-compose down -v

5) Add an entry to /etc/hosts

127.0.0.1 dreamfactory.app

6) Access the app

Go to 127.0.0.1 in your browser. It will take some time the first time. You will be asked to create your first admin user.

Running a licensed instance

1) Add the upgraded composer files to the df-docker directory

2) Uncomment lines 12 and 22

3) Add the License Key to line 22

4) Build images

docker-compose build

5) Start containers

docker-compose up -d

6) Add an entry to /etc/hosts

127.0.0.1 dreamfactory.app

7) Access the app

Go to 127.0.0.1 in your browser. It will take some time the first time. You will be asked to create your first admin user.

About

Docker container for DreamFactory.


Languages

Language:Shell 84.2%Language:Dockerfile 15.8%