Show how to wire the proxy into docker-compose and devcontainer setups without guessing the required mounts and commands. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
17 lines
467 B
YAML
17 lines
467 B
YAML
services:
|
|
dev:
|
|
image: mcr.microsoft.com/devcontainers/base:ubuntu
|
|
working_dir: /workspace
|
|
command: >
|
|
bash -lc "
|
|
/opt/host-git-cred-proxy/container/configure-git.sh --global &&
|
|
sleep infinity
|
|
"
|
|
tty: true
|
|
stdin_open: true
|
|
environment:
|
|
GIT_CRED_PROXY_URL: ${GIT_CRED_PROXY_URL:-http://host.docker.internal:18765}
|
|
volumes:
|
|
- .:/workspace
|
|
- ${HOST_GIT_CRED_PROXY_DIR}:/opt/host-git-cred-proxy:ro
|