forked from xiaolajiaoyyds/regplatformm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
100 lines (90 loc) · 2.52 KB
/
docker-compose.prod.yml
File metadata and controls
100 lines (90 loc) · 2.52 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# 生产环境 docker-compose(使用 GitHub Actions 预构建镜像)
# 服务器部署:docker compose -f docker-compose.prod.yml pull && docker compose -f docker-compose.prod.yml up -d
version: '3.8'
services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: regplatform
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
app:
image: ghcr.io/xiaolajiaoyyds/regplatformm:latest
restart: unless-stopped
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- xray-config:/etc/xray
environment:
DATABASE_URL: postgres://postgres:${DB_PASSWORD:-postgres}@db:5432/regplatform?sslmode=disable
GIN_MODE: release
DEV_MODE: "false"
TURNSTILE_SOLVER_URL: http://turnstile-solver:5072
CF_BYPASS_SOLVER_URL: http://cf-bypass-solver:5073
CAMOUFOX_REG_URL: ""
XRAY_CONFIG_DIR: /etc/xray
XRAY_CONTAINER_NAME: xray
DOCKER_SOCKET: /var/run/docker.sock
env_file:
- .env
xray:
image: teddysun/xray:latest
container_name: xray
restart: unless-stopped
network_mode: host
volumes:
- xray-config:/etc/xray:ro
turnstile-solver:
image: ghcr.io/xiaolajiaoyyds/regplatformm-turnstile-solver:latest
restart: unless-stopped
ports:
- "5072:5072"
environment:
SOLVER_BROWSER_TYPE: camoufox
SOLVER_THREADS: "2"
SOLVER_PORT: "5072"
cf-bypass-solver:
image: ghcr.io/xiaolajiaoyyds/regplatformm-cf-bypass-solver:latest
restart: unless-stopped
ports:
- "5073:5073"
openai-reg:
image: ghcr.io/xiaolajiaoyyds/regplatformm-openai-reg:latest
restart: unless-stopped
ports:
- "5075:5075"
environment:
OPENAI_REG_PORT: "5075"
GPTMAIL_BASE_URL: "https://mail.chatgpt.org.uk"
aws-builder-id-reg:
image: ghcr.io/xiaolajiaoyyds/regplatformm-aws-builder-id-reg:latest
restart: unless-stopped
ports:
- "5076:5076"
environment:
KIRO_REG_PORT: "5076"
shm_size: '2gb'
camoufox-reg:
image: ghcr.io/xiaolajiaoyyds/regplatformm-camoufox-reg:latest
restart: unless-stopped
ports:
- "5074:5074"
profiles:
- browser-mode
volumes:
pgdata:
xray-config: