Spaces:
asons
/
Paused

habppyar commited on
Commit
18bcac0
·
verified ·
1 Parent(s): 29ac14a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -0
README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: OpenCode Web (HF Bucket Persistent)
3
+ sdk: docker
4
+ app_port: 7860
5
+ ---
6
+
7
+ This Space runs `opencode web` on port 7860.
8
+
9
+ Persistence:
10
+ - Mount a Hugging Face **Storage Bucket** to `/data` in Space Settings (Read & Write).
11
+ - We do NOT run SQLite directly on the mounted bucket.
12
+ Instead:
13
+ - OpenCode runs with its DB on the local (ephemeral) disk.
14
+ - A background job periodically performs a safe SQLite `.backup` to `/data/opencode-backup/`.
15
+ - On startup, if a backup exists, it restores the DB back to local disk.
16
+
17
+ Required Secrets:
18
+ - OPENCODE_SERVER_PASSWORD (required)
19
+
20
+ Optional:
21
+ - OPENCODE_SERVER_USERNAME
22
+ - OPENCODE_CONFIG_CONTENT (inline JSON content)
23
+ - BACKUP_INTERVAL_SECONDS (default 60)