Newer
Older
aicoding / python / docker-compose.yml
services:
  opencode-python:
    image: opencode:py3-1.14.20
    container_name: opencode-python
    environment:
      - TZ=Asia/Shanghai
      - ALIBABA_API_KEY=sk-6026a1b171b84c2985c316d063136105
      - HTTP_PROXY=http://host.docker.internal:${PROXY_PORT}
      - HTTPS_PROXY=http://host.docker.internal:${PROXY_PORT}
      - NO_PROXY=localhost,127.0.0.1,host.docker.internal,nexus.chaosoft.com.cn
    volumes:
      - ../config:/root/.config/opencode
      - ./pip:/root/.pip
      - /var/run/docker.sock:/var/run/docker.sock
      - ${SRC_PATH}:/workspace
      - ./projects/${PROJECT_NAME}/venv:/root/venv
    working_dir: /workspace
    networks:
      - "opencode-net"
networks:
  opencode-net:
    driver: bridge