Sign inSign up

mvisonneau/generatedata

By mvisonneau

Updated over 5 years ago

Docker version of the benkeen/generatedata project

Image
5

10K+

mvisonneau/generatedata repository overview

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:

NameRequiredDescription
GD_API_ENABLEDfalseWhether to enable the API or not (default: true)
GD_DB_HOSTNAMEtrueMySQL database endpoint
GD_DB_NAMEtrueMySQL database name
GD_DB_USERNAMEtrueMySQL database user
GD_DB_PASSWORDfalseMySQL database password
GD_DB_TABLE_PREFIXfalseMySQL database table prefix (default: gd_)
GD_ENCRYPTION_SALTfalseEncryption 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.

Tag summary

Content type

Image

Digest

Size

215.8 MB

Last updated

over 5 years ago

docker pull mvisonneau/generatedata