{"id":51031043,"url":"https://github.com/dreamfactorysoftware/df-docker-nginx","last_synced_at":"2026-06-22T00:30:58.579Z","repository":{"id":142731733,"uuid":"59627757","full_name":"dreamfactorysoftware/df-docker-nginx","owner":"dreamfactorysoftware","description":"Docker container for DreamFactory 2.1.x using NGINX.","archived":false,"fork":false,"pushed_at":"2023-12-06T22:37:59.000Z","size":5219,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-05T00:35:01.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dreamfactorysoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-05-25T03:26:25.000Z","updated_at":"2020-05-06T06:02:56.000Z","dependencies_parsed_at":"2023-12-06T23:29:22.469Z","dependency_job_id":"d1d56eb8-d0aa-491e-812d-1586fda9c822","html_url":"https://github.com/dreamfactorysoftware/df-docker-nginx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dreamfactorysoftware/df-docker-nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamfactorysoftware%2Fdf-docker-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamfactorysoftware%2Fdf-docker-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamfactorysoftware%2Fdf-docker-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamfactorysoftware%2Fdf-docker-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreamfactorysoftware","download_url":"https://codeload.github.com/dreamfactorysoftware/df-docker-nginx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamfactorysoftware%2Fdf-docker-nginx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34630753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-22T00:30:57.543Z","updated_at":"2026-06-22T00:30:58.571Z","avatar_url":"https://github.com/dreamfactorysoftware.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# df-docker-nginx\nDocker container for DreamFactory 2.2.x using nginx.\n\nTHIS IS DEPRECATED. If you're looking for a DreamFactory Docker image, please see [https://github.com/dreamfactorysoftware/df-docker](https://github.com/dreamfactorysoftware/df-docker) however keep in mind it is experimental and unsupported.\n\n# Prerequisites\n\n## Get Docker\n- See: [https://docs.docker.com/installation](https://docs.docker.com/installation)\n\n### Get Docker Compose\n- See [https://docs.docker.com/compose/install](https://docs.docker.com/compose/install)\n\n# Configure using docker-compose\nThe easiest way to configure the DreamFactory application is to use docker-compose.\n\n## 1) Clone the df-docker repo\n`cd ~/repos` (or wherever you want the clone of the repo to be)  \n`git clone https://github.com/dreamfactorysoftware/df-docker-nginx.git`  \n`cd df-docker-nginx`\n\n## 2) Edit `docker-compose.yml` (optional)\n\n### Using load balancer\nRename the docker-compose.yml file to docker-compose.yml-no-lb-dist. Then \nrename docker-compose.yml-lb-dist to docker-compose.yml. Edit this docker-compose.yml file \nand change the APP_KEY from \"UseAny32CharactersLongStringHere\" to any \n32 characters long string.\n\n### Without using load balancer\nThe docker-compose.yml file already setup to for this. No need to edit anything.\n\n## 3) Build images\n`docker-compose build`\n\n## 4) Start containers\n\n_If your are using load balancer then you can scale the web container using \nfollowing command. Otherwise, just start the containers._\n\n`docker-compose scale web=3`\n\nStart the containers\n`docker-compose up -d`\n\n## 5) Add an entry to /etc/hosts\n`127.0.0.1 dreamfactory.app`\n\n## 6) Access the app\nGo to 127.0.0.1 or http://dreamfactory.app in your browser. It will take some time the first time. You will be asked to create your first admin user.\n\n# Configure by building your own\nIf you don't want to use docker-compose you can build the images yourself.\n\n## 1) Clone the df-docker repo\n`cd ~/repos` (or wherever you want the clone of the repo to be)  \n`git clone https://github.com/dreamfactorysoftware/df-docker-nginx.git`  \n`cd df-docker-nginx`\n\n## 2) Build dreamfactory/v2 image\n`docker build -t dreamfactory/v2 .`  \n\n## 3) Ensure that the database container is created and running\n`docker run -d --name df-mysql -e \"MYSQL_ROOT_PASSWORD=root\" -e \"MYSQL_DATABASE=dreamfactory\" -e \"MYSQL_USER=df_admin\" -e \"MYSQL_PASSWORD=df_admin\" mysql`\n\n## 4) Ensure that the redis container is created and running\n`docker run -d --name df-redis redis`\n\n## 5) Start the dreamfactorysoftware/df-docker container with linked MySQL and Redis server \nIf your database and redis runs inside another container you can simply link it under the name `db` and `rd` respectively. \n\n### Using load balancer\n\nCreating three (or as many as you want) web containers to load balance among them.\n\n_Replace \"UseAny32CharactersLongStringHere\" below with any 32 characters long string_\n\n`docker run -d --name df-web1 -e \"APP_KEY=UseAny32CharactersLongStringHere\" -e \"DB_HOST=db\" -e \"DB_USERNAME=df_admin\" -e \"DB_PASSWORD=df_admin\" -e \"DB_DATABASE=dreamfactory\" -e \"REDIS_HOST=rd\" -e \"REDIS_DATABASE=0\" -e \"REDIS_PORT=6379\" --link df-mysql:db --link df-redis:rd dreamfactory/v2`\n\n`docker run -d --name df-web2 -e \"APP_KEY=UseAny32CharactersLongStringHere\" -e \"DB_HOST=db\" -e \"DB_USERNAME=df_admin\" -e \"DB_PASSWORD=df_admin\" -e \"DB_DATABASE=dreamfactory\" -e \"REDIS_HOST=rd\" -e \"REDIS_DATABASE=0\" -e \"REDIS_PORT=6379\" --link df-mysql:db --link df-redis:rd dreamfactory/v2`\n\n`docker run -d --name df-web3 -e \"APP_KEY=UseAny32CharactersLongStringHere\" -e \"DB_HOST=db\" -e \"DB_USERNAME=df_admin\" -e \"DB_PASSWORD=df_admin\" -e \"DB_DATABASE=dreamfactory\" -e \"REDIS_HOST=rd\" -e \"REDIS_DATABASE=0\" -e \"REDIS_PORT=6379\" --link df-mysql:db --link df-redis:rd dreamfactory/v2`\n\n### Without using load balance\n  \n`docker run -d --name df-web -p 127.0.0.1:80:80 -e \"DB_HOST=db\" -e \"DB_USERNAME=df_admin\" -e \"DB_PASSWORD=df_admin\" -e \"DB_DATABASE=dreamfactory\" -e \"REDIS_HOST=rd\" -e \"REDIS_DATABASE=0\" -e \"REDIS_PORT=6379\" --link df-mysql:db --link df-redis:rd dreamfactory/v2`\n\n## 6) Start the load balancer (tutum/haproxy) container with linked df-web1, df-web2, df-web3 (or more) containers (optional, this step is needed for load balancer only)\n\n`docker run -d -p 80:80 --name df-lb --link df-web1:df-web1 --link df-web2:df-web2 --link df-web3:df-web3 tutum/haproxy`\n\n## 7) Add an entry to /etc/hosts\n127.0.0.1 dreamfactory.app\n\n## 8) Access the app\nGo to 127.0.0.1 or http://dreamfactory.app in your browser. It will take some time the first time. You will be asked to create your first admin user.\n\n# Notes\n- You may have to use `sudo` for Docker commands depending on your setup.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamfactorysoftware%2Fdf-docker-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreamfactorysoftware%2Fdf-docker-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamfactorysoftware%2Fdf-docker-nginx/lists"}