-
Notifications
You must be signed in to change notification settings - Fork 114
/
docker-compose.yml
49 lines (43 loc) · 983 Bytes
/
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
43
44
45
46
47
48
49
services:
web:
# build: .
image: dairoot/chatgpt-mirror:latest
env_file:
- .env
environment:
- CHATGPT_GATEWAY_URL=http://gateway:8787
ports:
- "50002:50002"
# depends_on:
# - gateway
volumes:
- chatgpt_mirror_db:/app/backend/db/
- ./backend/logs:/app/backend/logs
restart: always
gateway:
image: dairoot/chatgpt-gateway:latest
# ports:
# - "8787:8787"
deploy:
replicas: 1 # 账号数量多时可+1
env_file:
- .env
restart: always
depends_on:
- redis
environment:
- REDIS_URL=redis://redis:6379/0
redis:
image: redis:latest
restart: always
# ports:
# - "127.0.0.1:6379:6379"
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --cleanup --interval 10800 web gateway
volumes:
chatgpt_mirror_db: