Files
turso/.devcontainer/docker-compose.yml
Mikaël Francoeur 0f5897dde1 update devcontainer
- handle worktrees
- update URLs
2026-06-04 19:00:16 +04:00

64 lines
1.6 KiB
YAML

version: "3.9"
services:
proxy:
build:
context: .
dockerfile: Dockerfile.squid
networks: [sandbox, egress]
volumes:
- ./squid.conf:/etc/squid/squid.conf:ro
healthcheck:
test: ["CMD", "nc", "-z", "127.0.0.1", "3128"]
interval: 1s
timeout: 5s
retries: 10
start_period: 1s
tursodb:
depends_on:
proxy:
condition: service_healthy
build:
context: .
dockerfile: Dockerfile
args:
TZ: ${TZ:-America/Los_Angeles}
CLAUDE_CODE_VERSION: "latest"
GIT_DELTA_VERSION: "0.18.2"
ZSH_IN_DOCKER_VERSION: "1.2.0"
GO_VERSION: "1.24.10"
RUST_VERSION: "1.88.0"
PYTHON_VERSION: "3.11"
NVM_VERSION: "0.40.1"
NODE_VERSION: "22.13.0"
environment:
NODE_OPTIONS: "--max-old-space-size=4096"
CLAUDE_CONFIG_DIR: "/home/node/.claude"
POWERLEVEL9K_DISABLE_GITSTATUS: "true"
HTTP_PROXY: "http://proxy:3128"
HTTPS_PROXY: "http://proxy:3128"
ALL_PROXY: "http://proxy:3128"
NO_PROXY: "localhost,127.0.0.1"
networks: [sandbox]
volumes:
- ..:/workspace:delegated
# bind the main worktree, in case this is a linked worktree
- ${MAIN_GIT_DIR:?run .devcontainer/init-env.sh to generate .devcontainer/.env}:${MAIN_GIT_DIR}:delegated
- claude-code-bashhistory:/commandhistory
cap_add:
- NET_ADMIN
- NET_RAW
init: true
tty: true
volumes:
claude-code-bashhistory:
claude-code-config:
networks:
sandbox:
internal: true
egress:
driver: bridge