forked from adams549659584/go-proxy-bingai
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 1.27 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: "3"
services:
go-porxy-bingai:
container_name: go-porxy-bingai
image: nothingnessvoid/go-proxy-bingai:latest
ports:
- 8080:8080 # 容器端口映射到宿主机8080端口;宿主机监听端口可按需改为其它端口
networks:
- caddy
restart: unless-stopped
environment:
# - Go_Proxy_BingAI_SOCKS_URL=192.168.0.88:1070
# - Go_Proxy_BingAI_SOCKS_USER=xxx
# - Go_Proxy_BingAI_SOCKS_PWD=xxx
- Go_Proxy_BingAI_USER_TOKEN_1=123_456_abc
- Go_Proxy_BingAI_USER_TOKEN_2=xxx_yyy_zzz
labels:
caddy: bingsandun.sandun.plus # 填写你的 chatgptwebshare 预先解析到 ip 上的域名
caddy.reverse_proxy: "{{upstreams 8080}}"
caddy_1: sgp.nvoid.live
caddy_1.reverse_proxy: "{{upstreams 8080}}"
caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock # 公开 Docker 的套接字文件
- caddy_data:/data # 存储 Caddy 的持久数据
environment:
- CADDY_INGRESS_NETWORKS=caddy # 告诉 Caddy 它可以代理 Docker 网络中的服务
networks:
- caddy
restart: unless-stopped
networks:
caddy:
external: true
volumes:
caddy_data: {}