MediaGoblin
A basic container for a MediaGoblin media server.
Environment variables
DATABASE_URL
: Connection string for database to use for persistence, including credentials. See example below.NOTIFICATION_EMAIL
: From address for MediaGoblin notification emails.EMAIL_HOSTNAME
: Hostname used to send outgoing notification emails.EMAIL_PORT
: Port number used to send outgoing notification emails.EMAIL_USERNAME
: Username used to connect to outgoing email host.EMAIL_PASSWORD
: Password used to connect to outgoing email host.EMAIL_TLS_SSL
: "true" or "false" for using TLS/SSL encryption for sending emails.EMAIL_STARTTLS
: "true" or "false" for using STARTTLS encryption for sending emails.
Basic management
Set enviroment file
$ cp -v .env.example .env
Run with docker-compose
$ docker-compose up -d
User management
Since this image is for running a private MediaGoblin server, user self-registration is disabled. So, to add a user, first exec into the running Docker image:
$ docker exec -it mediagoblin bash
Where mediagoblin
is the name of your running Docker container. If you don’t
know the name to use, try looking in docker ps
output.
Then, add a user (follow the prompts):
# su - mediagoblin
$ ./bin/gmg --conf_file /srv/app/mediagoblin_local.ini adduser
Finally, if you want to make the new user into an admin user:
$ ./bin/gmg --conf_file /srv/app/mediagoblin_local.ini makeadmin username
Where username
corresponds to the user you added above.