Docker packaged version of the benkeen/generatedata project
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
examples
CHANGELOG.md
Dockerfile
LICENSE.md
README.md
docker-entrypoint.sh

README.md

docker-generatedata

Docker Pulls

This repository creates a Docker image of a standalone version of generatedata.com (from benkeen/generatedata).

Usage

The easiest is to use docker-compose, I provide a file in the examples folder:

~$ wget https://raw.githubusercontent.com/mvisonneau/docker-generatedata/master/examples/docker-compose.yml
~$ docker-compose up -d

In a few seconds/minutes, you will have a fully working version available at http://localhost:8000

Configuration

You can use the following environment variables in order to configure the container:

Name Required Description
GD_DB_HOSTNAME true MySQL database endpoint
GD_DB_NAME true MySQL database name
GD_DB_USERNAME true MySQL database user
GD_DB_PASSWORD true MySQL database password
GD_DB_TABLE_PREFIX false MySQL database table prefix (default: gd_)
GD_ENCRYPTION_SALT false Encryption Salt (default: changeme)

Example using an external database:

~$ docker run -it -p 8000:80 \
     -e GD_DB_HOSTNAME=myinstance.123456789012.eu-west-1.rds.amazonaws.com \
     -e GD_DB_NAME=generatedata \
     -e GD_DB_USERNAME=foo \
     -e GD_DB_PASSWORD=bar \
     mvisonneau/generatedata

Contribute

Contributions are more than welcome! Feel free to submit a PR.