version: "3.9"
# NexaCore AI VPS — Claude Code Template
# Edit .env before running: docker compose up -d
services:
  code-server:
    image: codercom/code-server:latest
    container_name: nexacore-claude-code
    restart: unless-stopped
    ports:
      - "127.0.0.1:8080:8080"
    environment:
      - PASSWORD=${CODE_SERVER_PASSWORD}
    volumes:
      - workspace:/home/coder/workspace
      - local:/home/coder/.local
    labels:
      - "com.nexacore.template=claude-code"
      - "com.nexacore.version=1.0.0"

volumes:
  workspace:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: /opt/nexacore/data/claude-code/workspace
  local:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: /opt/nexacore/data/claude-code/.local
