feat(docker): one-line installer and release Compose file

Add scripts/install.sh, a one-line installer that checks Docker and
Compose v2, installs into ~/opencode-manager (override with OCM_DIR),
prompts for an optional OpenCode config import, a repos folder mount and
LAN sign-in, then pulls and starts the published image.

- Add docker-compose.release.yml, which runs the published image under
  the Compose project name ocm; a checkout's docker-compose.yml keeps
  building from source
- Generate AUTH_SECRET on first container start and persist it to the
  data volume when unset, so Compose installs need no .env
- Refuse to install over a source checkout or beside an existing
  install, so volumes and the auth secret are not silently replaced
- Test the installer, entrypoint secret handling, and the two Compose
  files staying in step
This commit is contained in:
Chris Scott committed 2026-10-05 15:07:23 -04:00
1 parent 87636bf1ff
commit 27996ed12d
10 files changed
+734 -31

No files matched your search

+5 -2
View File
@@ -74,8 +74,11 @@ DEBUG=false
# ============================================
# Authentication (Better Auth)
# ============================================
# AUTH_SECRET is required - generate with: openssl rand -base64 32
AUTH_SECRET=CHANGE_ME_GENERATE_WITH_openssl_rand_base64_32
# Docker: optional. When unset, the container generates one on first start and
# persists it in the data volume (/app/data/.auth-secret).
# Outside Docker: required in production - generate with: openssl rand -base64 32
# Changing it later invalidates sessions and stored encrypted credentials.
# AUTH_SECRET=
# Trusted origins for authentication (comma-separated)
# Add your server's external URL when accessing remotely