chore(opencode-sandbox): add SSH auth and workspace mount for Gitea

- Mount host workspace at /home/ga/workspace
- Add SSH key and known_hosts for Gitea auth
- Configure git user identity in container
This commit is contained in:
2026-04-05 18:19:34 +00:00
parent e8bb767884
commit 32e5eb8906
3 changed files with 11 additions and 11 deletions

View File

@@ -10,7 +10,10 @@ services:
- NET_RAW
volumes:
# Your monorepo — opencode's working directory
- ../:/workspace
- /home/ga/workspace:/workspace
# SSH key for Gitea auth
- ~/.ssh/id_ed25519:/root/.ssh/id_ed25519:ro
- ~/.ssh/known_hosts:/root/.ssh/known_hosts:ro
# Persist opencode auth so you don't re-login every time
- opencode-auth:/root/.local/share/opencode
environment: