In diesem Abschnitt wird erklärt, wie Sie Gover auf Ihrem lokalen Computer mit Docker Desktop installieren können.
Diese Anleitung ist nur zum lokalen Testen von Gover gedacht. Bitte beachten Sie, dass diese Konfiguration nicht produktiv genutzt werden soll.
Installieren Sie Docker Desktop indem Sie die Anwendung unter https://www.docker.com/products/docker-desktop/ herunterladen und installieren.
Erstellen Sie einen Ordner mit dem Namen gover und legen Sie darin eine Datei mit dem Namen docker-compose.yml an.
Kopieren Sie dann den folgenden Text in diese Datei:
# docker-compose.yml
version: '3.1'
services:
database:
image: postgres:14
restart: always
environment:
POSTGRES_USER: gover
POSTGRES_PASSWORD: gover
POSTGRES_DB: gover
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./pg:/var/lib/postgresql/data
clamav:
image: clamav/clamav:1.1
restart: always
influx:
image: influxdb:2.7
restart: 'always'
environment:
DOCKER_INFLUXDB_INIT_MODE: 'setup'
DOCKER_INFLUXDB_INIT_USERNAME: 'gover'
DOCKER_INFLUXDB_INIT_PASSWORD: 'gover-password'
DOCKER_INFLUXDB_INIT_ORG: 'gover'
DOCKER_INFLUXDB_INIT_BUCKET: 'gover'
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: 'gover'
gover:
image: ghcr.io/aivot-digital/gover:3.0.0
depends_on:
- database
- clamav
restart: always
volumes:
- ./gv_data:/app/data
environment:
GOVER_DB_HOST: database
GOVER_DB_PORT: 5432
GOVER_DB_DATABASE: gover
GOVER_DB_USERNAME: gover
GOVER_DB_PASSWORD: gover
GOVER_CLAM_HOST: clamav
GOVER_CLAM_PORT: 3310
GOVER_INFLUX_HOST: influx
GOVER_INFLUX_PORT: 8086
GOVER_INFLUX_ORG: gover
GOVER_INFLUX_BUCKET: gover
GOVER_INFLUX_TOKEN: gover
GOVER_SMTP_HOST: localhost
GOVER_SMTP_PORT: 25
GOVER_SMTP_USERNAME: gover
GOVER_SMTP_PASSWORD: gover
GOVER_LOG_LEVEL: WARN
GOVER_JWT_SECRET: geheimnis-fuer-lokales-testen
GOVER_FROM_MAIL: '"Lokal" <noreply@localhost>'
GOVER_REPORT_MAIL: noreply@localhost
GOVER_SENTRY_SERVER: ""
GOVER_SENTRY_WEB_APP: ""
GOVER_ENVIRONMENT: Lokal
GOVER_HOSTNAME: "http://localhost:8080"
GOVER_FILE_EXTENSIONS: pdf, png, jpg, jpeg, doc, docx, xls, xlsx, ppt, pptx, odt, fodt, ods, fods, odp, fodp, odg, fodg, odf
GOVER_CONTENT_TYPES: application/pdf, image/png, image/jpeg, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/msexcel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/mspowerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.oasis.opendocument.text, application/vnd.oasis.opendocument.spreadsheet, application/vnd.oasis.opendocument.presentation, application/vnd.oasis.opendocument.graphics, application/vnd.oasis.opendocument.formula
ports:
- "8080:8080/tcp"
Nachdem Sie die Datei docker-compose.yml erstellt haben, können Sie die Basiscontainer mit dem folgenden Befehl starten:
docker compose up -d database clamav influx
Warten Sie, bis alle Container erfolgreich gestartet und initialisiert sind und starten Sie dann Gover mit dem Befehlt docker compose up -d gover.
Mit dem Befehl docker ps können Sie den Status der Container einsehen.
Nach einigen Minuten sollten Sie die folgende Ausgabe erhalten:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b2fa7590dccb ghcr.io/aivot-digital/gover:3.0.0 "java -jar /app/gove…" 4 minutes ago Up 4 minutes 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp app_gover_1
4c168b36f1f2 clamav/clamav:1.1 "/init" 4 minutes ago Up 4 minutes 3310/tcp, 7357/tcp app_clamav_1
0fc446c4dd23 postgres:14 "docker-entrypoint.s…" 4 minutes ago Up 4 minutes 5432/tcp app_database_1
0fc446c4dd23 influxdb:2.7 "/entrypoint.sh infl…" 4 minutes ago Up 4 minutes 8086/tcp app_influx_1
Wenn alle Services den Status Up ... haben, können sich jetzt über die URL http://localhost:8000 mit der laufenden Gover-Instanz verbinden.