5.5 KiB
Open Productive Stack
Overview
This repository contains a productive stack of open-source applications for team collaboration and communication. The stack includes:
Core Infrastructure
- Traefik: Edge router that handles routing and load balancing for all services
- PostgreSQL: Relational database for applications requiring PostgreSQL
- MariaDB: MySQL-compatible database for applications requiring MySQL
- Adminer: Database management tool for easy database administration
- Mailcow: Complete mail server solution with SMTP, IMAP, antivirus, and webmail
Collaboration Tools
- Nextcloud: Self-hosted file sync and share platform with collaboration features
- OnlyOffice: Online office suite for document editing and collaboration
- OpenProject: Project management and team collaboration software
- HedgeDoc: Collaborative markdown notes editor for team documentation
Web Publishing
- Drupal: Flexible content management system (CMS) for building websites
All components are containerized using Docker for easy deployment, scaling, and management, creating a complete productivity environment for teams.
Requirements
You need docker and with docker compose plugin. You may want to follow the post installation instructions.
At least 6 cores with 16GB RAM 100GB SSD would be sufficent.
Diagnostics
Run the unified diagnostics script from the repository root:
./diagnostic.sh
This combines the previous diagnostic.sh and health_check.sh checks.
Mail Security
Current Status
- ✅ SPF, DKIM, DMARC configured
- ✅ MTA-STS policy enforced (
https://mta-sts.nasarek.dev/.well-known/mta-sts.txt) - ✅ TLS-RPT configured
- ✅ TLS certificates valid on all mail ports
- ⚠️ DNSSEC: Enable at DNS provider and ensure DS/DNSKEY are published
- ⚠️ TLSA (DANE): Add records after DNSSEC is active (see
/var/deploy/scripts/README-TLSA.md)
TLSA Record Automation
Automated TLSA record updates are available. See /var/deploy/scripts/README-TLSA.md for setup instructions.
The automation monitors certificate changes and updates TLSA records automatically when certificates are renewed.
Install
Prerequisites
- Copy the env and docker-compose.override.yml to the service directories via the script.
Add your specific settings in set-config.sh, then:
./copy_overrides.bash
-
Set your env variables in
./core/.env,./drupal/.env,./gitlab/.env,./hedgedoc/.env,./onlyoffice/.env,./nextcloud/.env,./openproject/.env. -
Generate mailcow config
cd mailcow
./geneare_config.bash
- Copy config to .env
cp mailcow.conf .env
- Create infrastructure via script:
./create_infra.bash
Core environment
- Start traefik, mariadb, postgres and adminer with:
docker compose -f core/docker-compose.yml up -d
Drupal
- Set your env variables in
- Start Drupal containers.
docker compose -f drupal/docker-compose.yml up -d
Additional steps
You may want to use Redis Caching.
- add to drupal/sites/default/settings.php:
// Redis Configuration
$settings['redis.connection']['interface'] = 'PhpRedis';
$settings['redis.connection']['host'] = 'redis';
$settings['redis.connection']['port'] = 6379;
$settings['cache']['default'] = 'cache.backend.redis';
$settings['cache']['bins']['bootstrap'] = 'cache.backend.chainedfast';
$settings['cache']['bins']['discovery'] = 'cache.backend.chainedfast';
$settings['cache']['bins']['config'] = 'cache.backend.chainedfast';
- Visit your Domain and install Drupal site.
Gitlab
- Start gitlab.
docker compose -f gitlab/docker-compose.yml up -d
- Get your root password.
sudo docker exec -it gitlab grep 'Password:'
/etc/gitlab/initial_root_password
- Visit you domain and log in.
Hedgedoc
- Start containers.
docker compose -f hedgedoc/docker-compose.yml up -d
- Add your user.
source hedgedoc/.env
docker exec hedgedoc bin/manage_users --pass ${HEDGEDOC_USER_PASSWORD} --add ${HEDGEDOC_USER_EMAIL}
Mailcow
- Start containers.
docker compose docker-compose.yml up -d
-
Visit DOMAIN/admin and log in with admin:admin.
-
Consider the post installation steps, i. e.
watchdog dmarc dkim (You get your dkim key when you registered your email domain in mailcow ui)
OnylOffice
- Start containers.
docker compose -f onlyoffice/docker-compose.yml up -d
Nextcloud
- Start OnlyOffice first!
- Start containers.
docker compose -f nextcloud/docker-compose.yml up -d
- Visit nextcloud domain and login with your .env credentials.
Openproject
- Start containers.
docker compose -f hedgedoc/docker-compose.yml up -d
- Visit openproject domain and login with admin:admin and set new password.
Roadmap
- Tweak the core components and subservices for petter performance.
- More automatisation when installing the environment.
- Add more services
- Matrix/Synapse + Element
- Fix all the Nextcloud errors
- Your web server is not properly set up to resolve
.well-knownURLs, failed on:/.well-known/webfingerFor more details see the documentation ↗.