Skip to content

Instantly share code, notes, and snippets.

@karthiks
Created April 28, 2026 14:17
Show Gist options
  • Select an option

  • Save karthiks/fd17047cdaf5ba86dd6debd7bfb420e2 to your computer and use it in GitHub Desktop.

Select an option

Save karthiks/fd17047cdaf5ba86dd6debd7bfb420e2 to your computer and use it in GitHub Desktop.
docker-compose to build the image and runt it for setting up dev environment for Claude Code to build Expo / React Native app
services:
tel_hanuma_chalisa:
# When you have default setup with Dockerfile being the name
# build: .
# Being explicit for clarity
build:
context: .
dockerfile: Dockerfile.dev
image: tel_hanuma_chalisa:latest
container_name: thc
volumes:
- .:/app
# Prevents node_modules on Windows from clashing with Linux binaries
- /app/node_modules
ports:
- "8081:8081" # Metro Bundler
- "19000:19000" # Expo Config
environment:
#- EXPO_PACKAGER_PROXY_URL=http://localhost:8081
# IMPORTANT: Set this to your Windows Host IP so your phone can find the server
#- REACT_NATIVE_PACKAGER_HOSTNAME=${WINDOWS_HOST_IP}
- ANTHROPIC_BASE_URL=${ANTHROPIC_BASE_URL}
- ANTHROPIC_AUTH_TOKEN=${ANTHROPIC_AUTH_TOKEN}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- COLORTERM=truecolor
- TERM=xterm-256color
- CONTAINER=docker
- ENABLE_LSP_TOOL=1
- USE_BUILTIN_RIPGREP=0
deploy:
resources:
limits:
memory: 8G
reservations:
memory: 6G
stdin_open: true
tty: true
healthcheck:
test: ["CMD", "healthcheck"]
interval: 30s
timeout: 10s
retries: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment