feat(container): add Docker deployment and terminal shell fallback (#520)
* feat(container): add Docker deployment and terminal shell fallback Add Docker runtime assets (Dockerfile, compose file, and entrypoint) to run OpenChamber in containers with persistent config/data mounts. Improve terminal PTY startup reliability by probing multiple shell candidates and falling back automatically across Unix and Windows environments. * fix: add OMO install env * docs: add Docker Compose instructions to README
This commit is contained in:
@@ -120,6 +120,26 @@ openchamber update # Update to latest version
|
||||
|
||||
Download from [Releases](https://github.com/btriapitsyn/openchamber/releases).
|
||||
|
||||
### Docker Compose
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
The service will be available at `http://localhost:3000`.
|
||||
|
||||
**Data Directory Permission Note:** The `data/` directory is mounted into the container for persistent storage (config, sessions, SSH keys, workspaces). Before running, ensure the directory exists and has proper permissions:
|
||||
|
||||
```bash
|
||||
# Create data directories with correct ownership
|
||||
mkdir -p data/openchamber data/opencode/share data/opencode/config data/ssh data/workspaces
|
||||
|
||||
# Fix permissions (replace $USER with your username)
|
||||
chown -R 1000:1000 data/
|
||||
```
|
||||
|
||||
Without proper permissions, the container may fail to start or encounter permission denied errors when writing to these directories.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- [OpenCode CLI](https://opencode.ai) installed
|
||||
@@ -131,16 +151,19 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
|
||||
## Tech Stack
|
||||
|
||||
### Frontend
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
### State & UI
|
||||
|
||||

|
||||

|
||||
|
||||
### Backend & Desktop
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
Reference in New Issue
Block a user