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_USER_NAME=""
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_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_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)}"
GENERATE_SECURE_SECRET_CMD="${GENERATE_SECURE_SECRET_CMD:-$(openssl rand --hex 16)}"
GENERATE_K256_PRIVATE_KEY_CMD="${GENERATE_K256_PRIVATE_KEY_CMD:-$(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 75 repositories
  • keycloak Public

    Repo for keycloak

    composemgr/keycloak’s past year of commit activity
    0 WTFPL 0 0 0 Updated Nov 28, 2024
  • .github Public

    Repo for .github

    composemgr/.github’s past year of commit activity
    0 WTFPL 0 0 0 Updated Nov 27, 2024
  • acme Public
    composemgr/acme’s past year of commit activity
    0 WTFPL 0 0 0 Updated Nov 27, 2024
  • affine Public
    composemgr/affine’s past year of commit activity
    0 WTFPL 0 0 0 Updated Nov 27, 2024
  • aria2 Public
    composemgr/aria2’s past year of commit activity
    0 WTFPL 0 0 0 Updated Nov 27, 2024
  • composemgr/authentik’s past year of commit activity
    0 WTFPL 0 0 0 Updated Nov 27, 2024
  • blinko Public

    Repo for blinko

    composemgr/blinko’s past year of commit activity
    0 WTFPL 0 0 0 Updated Nov 27, 2024
  • borg Public
    composemgr/borg’s past year of commit activity
    0 WTFPL 0 0 0 Updated Nov 27, 2024
  • budibase Public

    Repo for budibase

    composemgr/budibase’s past year of commit activity
    0 WTFPL 0 0 0 Updated Nov 27, 2024
  • bytestash Public

    Repo for bytestash

    composemgr/bytestash’s past year of commit activity
    0 WTFPL 0 0 0 Updated Nov 27, 2024

Top languages

Loading…

Most used topics

Loading…