aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-04-06 16:05:29 -0500
committerJesús <heckyel@hyperbola.info>2021-04-06 16:05:29 -0500
commit407a6f96d85c9439756e69d8073bd546ea393013 (patch)
treeaf8a68b9678e0bb0b0966bcaaf21bb491d9c95e4 /README.md
downloadmediagoblin-docker-compose-407a6f96d85c9439756e69d8073bd546ea393013.tar.lz
mediagoblin-docker-compose-407a6f96d85c9439756e69d8073bd546ea393013.tar.xz
mediagoblin-docker-compose-407a6f96d85c9439756e69d8073bd546ea393013.zip
first commit
Diffstat (limited to 'README.md')
-rw-r--r--README.md56
1 files changed, 56 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..2dbba31
--- /dev/null
+++ b/README.md
@@ -0,0 +1,56 @@
+# MediaGoblin
+
+A basic container for a [MediaGoblin media server](https://git.sr.ht/~heckyel/mediagoblin).
+
+## 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
+
+```console
+$ cp -v .env.example .env
+```
+
+Run with `docker-compose`
+
+```console
+$ 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:
+
+```console
+$ 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):
+
+```console
+# 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:
+
+```console
+$ ./bin/gmg --conf_file /srv/app/mediagoblin_local.ini makeadmin username
+```
+
+Where `username` corresponds to the user you added above.