No description
Find a file
emanuel.holzmann a27850932d Merge pull request 'add version in the setup script' (!2) from feature/env_version into main
Reviewed-on: #2
Reviewed-by: emanuel.holzmann <emanuel.holzmann@noreply.localhost>
2024-12-15 21:45:09 +01:00
.templates fix typo 2024-12-08 20:14:01 +01:00
keycloak move tempaltes 2024-12-08 19:59:36 +01:00
mysql-initdb move tempaltes 2024-12-08 19:59:36 +01:00
.docker-compose.cluster.yml add version in the setup script 2024-12-11 17:17:51 +01:00
.docker-compose.http.yml add version in the setup script 2024-12-11 17:17:51 +01:00
.docker-compose.https.yml add version in the setup script 2024-12-11 17:17:51 +01:00
.gitignore update gitirgnore 2024-12-08 18:41:22 +01:00
README.md update readme 2024-12-08 20:39:57 +01:00
setup.sh add version in the setup script 2024-12-11 17:17:51 +01:00

Docker Compose Repo for Open Datenschutzcenter

Installation of Open Datenschutzcenter

Use the root user to setup docker and the Open Datenschutzcenter

su root

This script will setup a repo file and install docker and docker-compose.

echo "Execute Docker Install Scipt"
wget https://git.h2-invent.com/Meetling/Docker-Compose/raw/branch/main/installDocker.sh && bash installDocker.sh
rm installDocker.sh

To use the setup script for docker-compose, run the following commands.

echo "Download Setup Script"
wget https://git.h2-invent.com/Datenschutzcenter/Docker-Compose/raw/branch/main/setup.sh
echo "Execute Setup Script"
bash setup.sh
echo "Remove Setup Script"
rm setup.sh
echo "Execute Docker Compose"
cd /opt/odc && docker-compose up -d

Working directory

The setup script will clone and add files into the directory /opt/odc.

You can run the composer command inside this directory again to update the containers or check the variables which are used to setup the containers.

cd /opt/odc

Following Files are important and have been changed and setup with the script:

  • .env.local
  • docker.config
  • docker-compose.yml

Add additional custom configs

To add additional custom environment variables, you can add a file .env.custom and add your variables there. This file will not be changed from the setup script and will be used inside all containers to overwrite the existing .env and .env.local. All environment variables can be found inside the Git Repository: Open Datenschutzcenter

MAILER_DSN='smtps://<username>:<password>@<smtpHost>:<smtpPort>'
registerEmailAdress=register@local.local
registerEmailName=Datenschutzcenter
defaultEmailAdress=test@test.com
defaultEmailName=test
AKADEMIE_EMAIL=akademie@lokal.lokal
DEFAULT_EMAIL=notification@lokal.lokal
DEV_EMAIL=dev@lokal.lokal
SUPPORT_MAIL=support@lokal.lokal

imprint=https://h2-invent.com/imprint
dataPrivacy=https://h2-invent.com/gdpr
superAdminRole=odc-super-admin

CRON_TOKEN=token