habi*DAT is a collaboration platform comprised of an ldap user backend, a nextcloud server and a discourse forum. The goal is to integrate all these tools as seamlessly as possible. It is meant to server the needs of small collective projects. This setup script is meant to allow for easys installation and maintenance.
Make sure you have linux machine ready, are logged in as root and have the following software installed:
If you use the docker version, you only need to have docker and docker-compose installed.
Also you need to have a domain and subdomains for the different apps:
If you just want to have a local test installation add the following lines to your /etc/hosts files:
127.0.0.1 cloud.habidat.local
127.0.0.1 user.habidat.local
127.0.0.1 sso.habidat.local
127.0.0.1 discourse.habidat.local
127.0.0.1 direktkredit.habidat.local
127.0.0.1 wiki.habidat.local
In order for everything to function properly you need to have an SMTP server ready that accepts plain requests without username and password. For testing purposes you can try without.
First you have to edit the file setup.env and fill in all necessary parameters. They should be pretty self-explainatory, except these three:
Now you can use the script "habidat.sh" to install the platform.
To install a module run
./habidat.sh install <module>
Modules can only be installed after their dependencies. This makes the following installation order:
then
You can also install all modules at once:
./habidat.sh install all
To remove a module run
./habidat.sh rm <module>
IMPORTANT: Please note that all data will be lost, as this also removes all mounted volumes and named volumes of the docker containers.
You can also list all available modules and their installation status with
./habidat.sh modules
After installation you can logon to all the services with username admin. The password is printed at the end of the installation process and can be looked up in store/auth/passwords.env
You can also run habidat-setup with docker-compose. Here is an example for a docker-compose.yml including an environment file. In this case you do not need to clone the repository.
The setup-docker.env file:
HABIDAT_TITLE=habi*DAT
HABIDAT_DESCRIPTION=habi*DAT Test Plattform fuer Hausprojekte
HABIDAT_LOGO=habidat.png
[email protected]
HABIDAT_ADMIN_PASSWORD=generate
HABIDAT_PROTOCOL=https
HABIDAT_DOMAIN=habidat.local
HABIDAT_NEXTCLOUD_SUBDOMAIN=cloud
HABIDAT_DISCOURSE_SUBDOMAIN=discourse
HABIDAT_DIREKTKREDIT_SUBDOMAIN=direktkredit
HABIDAT_USER_SUBDOMAIN=user
HABIDAT_MEDIAWIKI_SUBDOMAIN=wiki
HABIDAT_LDAP_BASE=dc=habidat,dc=local
HABIDAT_SMTP_HOST=mail.xaok.org
HABIDAT_SMTP_PORT=25
HABIDAT_DOCKER_PREFIX=habidat
HABIDAT_CREATE_SELFSIGNED=true
HABIDAT_SSO=false
The docker-compose.yml:
version: '3'
services:
habidat:
image: habidat/setup
volumes:
- ./habidat:/habidat/store
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- ./setup-docker.env
Running commands in this case looks like this:
docker-compose run habidat install nextcloud
This project is in an early development stage, please only use for testing purposes.
Content type
Image
Digest
Size
39.4 MB
Last updated
over 7 years ago
docker pull habidat/setup