pinry / docker-pinry

An easy way to get a Pinry instance up and running using Docker.
http://getpinry.com/
Other
55 stars 23 forks source link

Add creating super user option #17

Closed tsmsogn closed 6 years ago

tsmsogn commented 6 years ago

I added option to create super user when docker is up. We can use this option as follows.

sudo docker run -d=true \
    -e SUPER_USER_NAME=your_awesome_name \
    -e SUPER_USER_PASSWORD=your_awesome_password \
    -e SUPER_USER_EMAIL=your_awesome_email@example.com \
    -p=10000:80 \
    -v=/mnt/pinry:/data \
    pinry/pinry \
    /start

SUPER_USER_NAME and SUPER_USER_PASSWORD are required to create super user. SUPER_USER_EMAIL is optional.