From 77735c643795bda22fd2572513a947db3fa7c8e7 Mon Sep 17 00:00:00 2001 From: cerberus Date: Wed, 28 Jan 2026 10:56:27 +0100 Subject: [PATCH] added ocular --- ocular/compose.yaml | 15 +++++++++++++++ ocular/example.env | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 ocular/compose.yaml create mode 100644 ocular/example.env diff --git a/ocular/compose.yaml b/ocular/compose.yaml new file mode 100644 index 0000000..3aa4776 --- /dev/null +++ b/ocular/compose.yaml @@ -0,0 +1,15 @@ +# Ocular documentation can be found here: +# https://simonwep.github.io/ocular/pages/deploy.html + +services: + ocular: + image: ghcr.io/simonwep/ocular:v2 + restart: unless-stopped + volumes: + - ./data:/data/genesis + ports: + - ${PORT:-3030}:80 + environment: + - GENESIS_JWT_SECRET=${GENESIS_JWT_SECRET:?Required Variable} + - GENESIS_CREATE_USERS=${GENESIS_CREATE_USERS:-'admin!:admin'} + - GENESIS_JWT_TOKEN_EXPIRATION=${GENESIS_JWT_TOKEN_EXPIRATION:-60} \ No newline at end of file diff --git a/ocular/example.env b/ocular/example.env new file mode 100644 index 0000000..df04940 --- /dev/null +++ b/ocular/example.env @@ -0,0 +1,11 @@ +# JWT secret known only to your token generator +# You can use `openssl rand -base64 48` for this. +GENESIS_JWT_SECRET=insert-a-very-long-random-string-here + +# JWT expiration in minutes +GENESIS_JWT_TOKEN_EXPIRATION=60 + +# Use ! as suffix for the username to indicate that this user should be created as an admin. +# Admins can add, remove and edit users, you can create multiple users by separating them with a comma. +# Comment this out if you already have users created! +# GENESIS_CREATE_USERS=my-admin-username!:my-very-secure-password \ No newline at end of file