mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
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:
1 parent
87636bf1ff
commit
27996ed12d
10 files changed
+734
-31
No files matched your search
+1
-1
@@ -29,7 +29,7 @@ services:
|
||||
- MAX_FILE_SIZE_MB=50
|
||||
- MAX_UPLOAD_SIZE_MB=50
|
||||
- DEBUG=false
|
||||
- AUTH_SECRET=${AUTH_SECRET}
|
||||
- AUTH_SECRET=${AUTH_SECRET:-}
|
||||
- AUTH_TRUSTED_ORIGINS=${AUTH_TRUSTED_ORIGINS:-http://localhost:5003}
|
||||
- ADMIN_EMAIL=${ADMIN_EMAIL:-}
|
||||
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-}
|
||||
|
||||
Reference in new issue
Block a user