HumHub is a feature rich and highly flexible OpenSource Social Network Kit written in PHP. This container provides a quick, flexible and lightwight way to set-up a proof-of-concept for detailed evaluation. Using this in production is possible, but not recommended.
-
latest
: unstable master build (use with caution! might be unstable) -
1.2.8
: latest stable release (recommended) -
1.0.1
: latest 1.0.x release (not recommended) -
experimental
: test build (testing only)
No database integrated. For persistency look at the Compose-File example.
docker run -d --name humhub_db -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=humhub mariadb:10.2
docker run -d --name humhub -p 80:80 --link humhub_db:db mriedmann/humhub:1.2.0
- open http://localhost/ in browser
- complete the installation wizard (use
db
as database hostname andhumhub
as database name) - finished
- The installation wizard is sometimes not working with chrome. Workaround: Use other browser for installing.
version: '3.1'
services:
humhub:
build: .
links:
- "db:db"
ports:
- "80:80"
volumes:
- "_data/config:/var/www/localhost/htdocs/protected/config"
- "_data/uploads:/var/www/localhost/htdocs/protected/uploads"
db:
image: mariadb:10.2
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: humhub
This container supports some further options which can be configured via environment variables. Look at the docker-compose.yml for some inspiration.
default: ""
This username and password will be used to connect to the database. Please do not set the HUMHUB_DB_PASSWORD without HUMHUB_DB_USER to avoid problems. If this is not set, the visual installer will show up at the first startup.
default: humhub
Defines the name of the database where humhub is installed.
default: db
Defines the mysql/mariadb-database-host. If you use the --link
argument please specify the name of the link as host or use db
as linkname (--link <container>:db
).
default: false
If this and HUMHUB_DB_USER
are set an autoinstallation will run during the first startup. The default login is admin
with password test
. This feature utilises a hidden installer-feature used for integration testing ( see code file ).
default: 1
This can be set to "false"
to disabled the startup integrity check. Use with caution!
default: 1
Can be used to let the startup fail if the db host is unavailable. To disable this, set it to "false"
. Can be useful if an external db-host is used, avoid when using a linked container.
default: 1
PJAX is a jQuery plugin that uses ajax and pushState to deliver a fast browsing experience with real permalinks, page titles, and a working back button. (ref) This library is known to cause problems with some browsers during installation. This container starts with PJAX disabled to improve the installation reliability. If this is set (default), PJAX is enabled during the second startup. Set this to "false"
to permanently disable PJAX. Please note that changing this after container-creation has no effect on this behavior.
Please use the issues-page for bugs or suggestions. Pull-requests are highly welcomed.