[新服务 Docker] 在网页端使用chatgpt的api开启类似谷歌翻译的高效翻译

date
Jan 19, 2024
slug
newservice-openai-translator
status
Published
summary
新服务-openai-translator
tags
service
type
Post
URL
notion image

Summary

步骤

#self-host by docker composer

**********
export DOCKER_PROJ=openai-translator
export DOCKER_PROJ_DOMAIN=$DOCKER_PROJ.xxx.org

cd /data/
git clone https://github.com/LanceMoe/openai-translator.git
cd $DOCKER_PROJ

docker build -t $DOCKER_PROJ .

cat > docker-compose.yml <<EOF
version: '3.3'
services:
    $DOCKER_PROJ:
        image: $DOCKER_PROJ
        container_name: $DOCKER_PROJ
        #ports:
        #    - '3000:80'
        #volumes:
        #    - ./chinese-dos-games:/app/static/games
networks:
  default:
    name: npm_nginx_proxy_manager-network
    external: true
EOF

docker-compose down; docker-compose up -d; sleep 1s; docker-compose logs -f

参考

notion image

Chrome Application

notion image

© Ying Bun 2021 - 2024