Nach der Installation von Nocodb habe ich auf den Dashboard zwei Einträge. Einer von mir selbst erstellt und einer kam von selbst. Das macht ja so keinen Sinn. Habe ich etwas falsch gemacht, oder ist das ein Bug?
Setup Skript
#!/bin/bash
# This script gets three variables passed: $DOMAIN, $ADMIN_PASSWORD, $IP, $LDAP_DC
mkdir -p /root/nocodb
# Dont forget to escape " with a backslash:
echo "version: \"2.1\"
services:
nocodb:
depends_on:
root_db:
condition: service_healthy
environment:
NC_DB: \"mysql2://root_db:3306?u=noco&p=redacted&d=root_db\"
image: \"nocodb/nocodb:latest\"
ports:
- \"23260:8080\"
restart: unless-stopped
volumes:
- \"./nc_data:/usr/app/data\"
root_db:
environment:
MYSQL_DATABASE: root_db
MYSQL_PASSWORD: redacted
MYSQL_ROOT_PASSWORD: redacted
MYSQL_USER: redacted
healthcheck:
retries: 10
test:
- CMD
- mysqladmin
- ping
- \"-h\"
- localhost
timeout: 20s
image: \"mysql:8.0.37\"
restart: unless-stopped
volumes:
- \"./db_data:/var/lib/mysql\"
" > /root/nocodb/docker-compose.yml
docker-compose -f /root/nocodb/docker-compose.yml up -d
echo "nocodb.$DOMAIN {
#tls internal
reverse_proxy localhost:23260
}
" >> /etc/caddy/Caddyfile
# If domain is "int.de" uncomment the tls internal line for internal https
if [ "$DOMAIN" = "int.de" ]; then
sed -i 's/#tls internal/tls internal/g' /etc/caddy/Caddyfile
fi
systemctl restart caddy
nocodb.conf
id="nocodb"
name="nocodb"
description="A better way to organize small sets of relational data"
author="redacted"
email="redacted
url="nocodb"
Vielen Dank!