Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thinkclaves opened this issue Nov 15, 2024 · 1 comment
Open

Comments

@thinkclaves
Copy link

thinkclaves commented Nov 15, 2024

贴一个测试过的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"
@hunkjun
Copy link
Owner

hunkjun commented Nov 21, 2024

@thinkclaves 感谢你提供的脚本,已添加到README.md了~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants