Skip to content

贴一个测试过的docker-compose.yml一键启动的脚本 #1

@thinkclaves

Description

@thinkclaves

贴一个测试过的docker-compose.yml一键启动的脚本:

 ch-gptproxy:
    restart: always
    container_name: ch-gptproxy
    hostname: ch-gptproxy
    image: python:3.11.0
    volumes:
      - ./volumes/ch-gptproxy/app.py:/home/app.py:rw
      - ./volumes/ch-gptproxy/requirements.txt:/home/requirements.txt:rw
    command:
      - /bin/sh
      - -c
      - "pip3 install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple  -r /home/requirements.txt && python /home/app.py"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions