Sign inSign up

jbasila/mamute

By jbasila

•Updated almost 10 years ago

Mamute is a Q&A Engine - This image is based on java:8-jdk and uses Mamute 1.5.0

Image
2

50K+

jbasila/mamute repository overview

⁠Mamute

The image is based on the java:8-jdk⁠ base image, fetches Mamute⁠ version 1.5.0, extracts and places a startup script file that does all the magic.

⁠Purpose of container

Provide an easy way to deploy Mamute in production with very easy configuration options. Mamute stores it's data in a MySQL⁠.

Attention!

MySQL version 5.7.4 works well with Mamute 1.5.0 any version above 5.7.4 will fail and break and cause the polar ice caps to melt

⁠Eager to try it?

Start a MySQL container:

docker run -d \
    --name mysql-mamute \
    -e MYSQL_ROOT_PASSWORD=secretpassword \
    -e MYSQL_DATABASE=mamute \
    -e MYSQL_USER=mamute \
    -e MYSQL_PASSWORD=mamute \
    mysql:5.7.4

. Start a Mamute container:

docker run -d \
    --name mamute \
    --link mysql-mamute:mysql \
    -e MAMUTE_PORT=8080 \
    -p 8080:8080 \
    jbasila/mamute:1.5.0

. This is enough to test Mamute on localhost on port 8080. Navigate to http://localhost:8080⁠.

⁠Environment Variables

To configure the Mamute properly, the following environment variables can be used.

⁠Mamute behaviour

The following will control the behavior of Mamute execution:

Environment NameDefault ValueDescription
MAMUTE_HOSTlocalhostHost Name/IP Address of Mamute (external IP/FQDN)
MAMUTE_PORT80Internal port to use, should not be changed
MAMUTE_ENABLE_SIGNUPtrueEnable signup for users. When using LDAP consider to disable it
MAMUTE_ALLOW_QUESTION_DELETEtrueAllow owner/moderator to delete own question or full thread (moderator)
MAMUTE_ENABLE_SOLRtrueEnable SOLR Indexing engine for enabling searching the database
MAMUTE_ATTACHMENTS_PATH/tmpLocation where attachments are stored, it's recommended to change it

⁠MySQL Database Configuration

The following control the parameters of the MySQL database to connect to and store the data in:

Environment NameDefault ValueDescription
DB_HOSTmysqlHost Name/IP Address of the MySQL server to use
DB_PORT3306The MySQL port to use
DB_USERmamuteThe database user to use
DB_PWDmamuteThe password of the database to use
DB_NAMEmamuteThe database name to use to store Mamute data

⁠Mail Server Configuration

The following control the mail server configuration:

Environment NameDefault ValueDescription
MAIL_SERVERsmtp.sample.serverHost Name/IP Address of the mail server
MAIL_PORT25SMTP server port to use
MAIL_USE_TLSfalseEnable the use of TLS
MAIL_USERNAMEuserThe username to use for authenticated mail server
MAIL_PASSWORDpasswordThe password to use for authenticated mail server
MAIL_FROM[email protected]⁠The e-mail address to use in the automated e-mails
MAIL_FROM_NAME"Mamute System"The e-mail name to use for automated e-mails

⁠LDAP Authentication Configuration

Environment NameDefault ValueDescription
LDAP_PORT389LDAP port
LDAP_USERuserLDAP DN to use for authentication
LDAP_PASSpassLDAP password to use for authentication
LDAP_USERDN"OU=Users,DC=company,DC=com"The LDAP branch to search users in
LDAP_GROUP_ATTRmemberOfThe attribute to use for checking moderator gorup in
LDAP_MODERATOR_GROUP"CN=Moderators,OU=Groups,DC=company,DC=com"The membership that grants moderator access
LDAP_USE_SSLfalseEnable the use of SSL

Tag summary

Content type

Image

Digest

Size

341.4 MB

Last updated

almost 10 years ago

docker pull jbasila/mamute