Skip to content
@composemgr

Compose MGR

A place to store docker compose files

👋 Welcome to composemgr 🚀

All of these docker compose files use the same env settings
create the file "$HOME/.config/myscripts/composemgr/compose.env"
and edit it with the following variables

export global variables

export COMPOSE_ENV_FILES="$HOME/.config/myscripts/composemgr/compose.env"
mkdir -p "$HOME/.config/myscripts/composemgr"
${EDITOR:-vim} "$HOME/.config/myscripts/composemgr/compose.env"

SYSTEM VARS

TZ="America/New_York"
BASE_HOST_NAME="$HOSTNAME"
BASE_DOMAIN_NAME="$(hostname -d 2>/dev/null | grep '^' || echo "$HOSTNAME")" 

DATABASE HOSTNAMES ENV

REDIS_URL="redis"
VALKEY_URL="valkey"
COUCHDB_URL="couchdb"
MARIADB_URL="mariadb"
MONGODB_URL="mongodb"
MSSQLDB_URL="mssqldb"
COUCHBASE_URL="couchbasedb"
POSTGRESQL_URL="postgresqldb"
POCKETBASE_URL="pocketbasedb"

DATABASE USER ENV

DB_ADMIN_NAME="${DB_ADMIN_NAME:-db_admin}"
DB_ADMIN_PASS="${DB_ADMIN_PASS:-$(head -n50 '/dev/urandom' | tr -dc 'a-zA-Z0-9' | tr -d '[:space:]\042\047\134' | fold -w 32 | head -n 1)}"
DB_USER_NAME="${DB_USER_NAME:-$USER}"
DB_USER_PASS="${DB_USER_PASS:-$(head -n50 '/dev/urandom' | tr -dc 'a-zA-Z0-9' | tr -d '[:space:]\042\047\134' | fold -w 32 | head -n 1)}"

APP USER ENV

APP_RUN_AS=""
APP_TEMP_PASS="${APP_TEMP_PASS:-$(head -n50 '/dev/urandom' | tr -dc 'a-zA-Z0-9' | tr -d '[:space:]\042\047\134' | fold -w 32 | head -n 1)}"
APP_USER_NAME="${APP_USER_NAME:-$USER}"
APP_USER_PASS="${APP_USER_PASS:-$(head -n50 '/dev/urandom' | tr -dc 'a-zA-Z0-9' | tr -d '[:space:]\042\047\134' | fold -w 32 | head -n 1)}"
APP_ADMIN_USER="${APP_ADMIN_USER:-${USER}_admin}"
APP_ADMIN_PASS="${APP_ADMIN_PASS:-$(head -n50 '/dev/urandom' | tr -dc 'a-zA-Z0-9' | tr -d '[:space:]\042\047\134' | fold -w 32 | head -n 1)}"

TOKEN VARS

APP_JWT_TOKEN="${APP_JWT_TOKEN:-$(openssl rand -hex 32)}"
APP_API_TOKEN="${APP_API_TOKEN:-$(openssl rand -hex 16)}"
APP_SECRET_TOKEN_16="${APP_SECRET_TOKEN_16:-$(openssl rand -hex 16)}"
APP_SECRET_TOKEN_32="${APP_SECRET_TOKEN_32:-$(openssl rand -hex 32)}"
APP_SECRET_TOKEN_64="${APP_SECRET_TOKEN_64:-$(openssl rand -hex 64)}"
APP_SECRET_TOKEN_DEFAULT="${APP_SECRET_TOKEN_DEFAULT:-$(openssl rand -hex 16)}"
SECURE_SECRET="${SECURE_SECRET:-$(openssl rand --hex 32)}"
K256_PRIVATE_KEY="${K256_PRIVATE_KEY:-$(openssl ecparam --name secp256k1 --genkey --noout --outform DER | tail --bytes=+8 | head --bytes=32 | xxd --plain --cols 32)}"

KEY VARS

RPC_SECRET="${RPC_SECRET:-$(openssl rand -hex 32)}"
ENCRYPTION_KEY="${ENCRYPTION_KEY:-$(openssl rand -hex 32)}"

E-Mail ENV

EMAIL_SERVER_HOST=""
EMAIL_SERVER_PORT=""
EMAIL_SERVER_ENCRYPTION=""
EMAIL_SERVER_TIMEOUT="10"
EMAIL_SERVER_FROM_NAME=""
EMAIL_SERVER_FROM_EMAIL=""
EMAIL_SERVER_LOGIN_NAME=""
EMAIL_SERVER_LOGIN_PASS=""

DNS RFC2136 credentials

RFC2136_NAMESERVER=
RFC2136_TSIG_ALGORITHM=
RFC2136_TSIG_KEY=certbot.
RFC2136_TSIG_SECRET=
RFC2136_PROPAGATION_TIMEOUT=90

Create random password

head -n50 '/dev/urandom' | tr -dc 'a-zA-Z0-9' | tr -d '[:space:]\042\047\134' | fold -w 32 | head -n 1

Create hash password

openssl passwd -1 -salt $(openssl rand -base64 6) $(tr -dc A-Za-z0-9 <"/dev/urandom" | head -c 20)

Create secret

openssl rand -hex 32

Create JWT secret

openssl rand -base64 32

Author

🤖 casjay: Github 🤖

Popular repositories Loading

  1. acme acme Public

  2. affine affine Public

  3. aria2 aria2 Public

  4. authentik authentik Public

  5. borg borg Public

  6. zitadel zitadel Public

    Repo for zitadel

Repositories

Showing 10 of 78 repositories
  • rocketchat Public

    Repo for rocketchat

    composemgr/rocketchat’s past year of commit activity
    0 WTFPL 0 0 0 Updated Dec 25, 2024
  • zitadel Public

    Repo for zitadel

    composemgr/zitadel’s past year of commit activity
    0 WTFPL 0 0 0 Updated Dec 20, 2024
  • zammad Public

    Repo for zammad

    composemgr/zammad’s past year of commit activity
    0 WTFPL 0 0 0 Updated Dec 20, 2024
  • wireguard Public

    Repo for wireguard

    composemgr/wireguard’s past year of commit activity
    0 WTFPL 0 0 0 Updated Dec 20, 2024
  • vaultwarden Public

    Repo for vaultwarden

    composemgr/vaultwarden’s past year of commit activity
    0 WTFPL 0 0 0 Updated Dec 20, 2024
  • valkey Public

    Repo for valkey

    composemgr/valkey’s past year of commit activity
    0 WTFPL 0 0 0 Updated Dec 20, 2024
  • uptimekuma Public

    Repo for uptimekuma

    composemgr/uptimekuma’s past year of commit activity
    0 WTFPL 0 0 0 Updated Dec 20, 2024
  • umbrel Public

    Repo for umbrel

    composemgr/umbrel’s past year of commit activity
    0 WTFPL 0 0 0 Updated Dec 20, 2024
  • tududi Public

    Repo for tududi

    composemgr/tududi’s past year of commit activity
    0 WTFPL 0 0 0 Updated Dec 20, 2024
  • trilium Public

    Repo for trilium

    composemgr/trilium’s past year of commit activity
    0 WTFPL 0 0 0 Updated Dec 20, 2024

Top languages

Loading…

Most used topics

Loading…