-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose-prd.yml
More file actions
148 lines (141 loc) · 4.15 KB
/
docker-compose-prd.yml
File metadata and controls
148 lines (141 loc) · 4.15 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
services:
dataflow_postgres_db:
restart: unless-stopped
image: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsghq/postgres:15.10
volumes:
- /data/v2/postgres_db_data:/var/lib/postgresql/data
command: -p 5432
environment:
- POSTGRES_DB=data_flow
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5433:5432"
networks:
- csg-network
dataflow_mongo_db:
restart: unless-stopped
image: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsghq/mongo:8.0.12
volumes:
- /data/v2/mongodata:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=example
ports:
- "27017:27017"
networks:
- csg-network
dataflow_celery_redis:
restart: unless-stopped
image: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsghq/redis:7.2.5
volumes:
- /dataflow_data/celery_redis_data:/data
ports:
- "16379:6379"
networks:
- csg-network
dataflow_celery_worker:
restart: unless-stopped
image: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsghq/dataflow:20251130
command: >
sh -c "
MILLISECOND_TIMESTAMP=$$(date +%s%3N);
NODENAME=worker_$$MILLISECOND_TIMESTAMP@$$(hostname -f);
celery -A data_celery.main:celery_app worker --loglevel=info --pool=gevent -n $$NODENAME
"
volumes:
- /data/v2/apidata:/data/dataflow_data
environment:
- DATA_DIR=/data/dataflow_data
- CSGHUB_ENDPOINT=https://hub.opencsg.com
- MAX_WORKERS=99
- RAY_ADDRESS=auto
- RAY_ENABLE=False
- RAY_LOG_DIR=/home/output
- API_SERVER=0.0.0.0
- API_PORT=8001
- ENABLE_OPENTELEMETRY=False
- DATABASE_DB=data_flow
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=postgres
- DATABASE_HOSTNAME=dataflow_postgres_db
- DATABASE_PORT=5432
- REDIS_HOST_URL=redis://dataflow_celery_redis:6379
- MONG_HOST_URL=mongodb://root:example@dataflow_mongo_db:27017
- MINERU_API_URL=http://111.4.242.20:30000
ports:
- "8001:8001"
depends_on:
- dataflow_celery_redis
- dataflow_mongo_db
- dataflow_postgres_db
networks:
- csg-network
dataflow_label_studio:
stdin_open: true
tty: true
build: .
image: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsghq/label-studio:20251130
restart: unless-stopped
expose:
- "8002"
depends_on:
- dataflow_postgres_db
environment:
- DJANGO_DB=default
- POSTGRE_NAME=postgres
- POSTGRE_USER=postgres
- POSTGRE_PASSWORD=postgres
- POSTGRE_PORT=5432
- POSTGRE_HOST=dataflow_postgres_db
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
- JSON_LOG=1
- LABEL_STUDIO_HOST=0.0.0.0
- CSGHUB_ENDPOINT= https://hub.opencsg.com
- LABEL_STUDIO_PORT=8002
volumes:
- /data/v2/label-studio:/label-studio/data:rw
ports:
- "8002:8002"
command: label-studio
networks:
- csg-network
dataflow_api_server:
restart: unless-stopped
image: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsghq/dataflow:20251130
command: >
sh -c "
uvicorn data_server.main:app --host 0.0.0.0 --port 8000
"
volumes:
- /data/v2/apidata:/data/dataflow_data
environment:
- DATA_DIR=/data/dataflow_data
- CSGHUB_ENDPOINT=https://hub.opencsg.com
- MAX_WORKERS=99
- RAY_ADDRESS=auto
- RAY_ENABLE=False
- RAY_LOG_DIR=/home/output
- API_SERVER=0.0.0.0
- API_PORT=8000
- ENABLE_OPENTELEMETRY=False
- DATABASE_DB=data_flow
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=postgres
- DATABASE_HOSTNAME=dataflow_postgres_db
- DATABASE_PORT=5432
- STUDIO_JUMP_URL=http://8.152.218.254:8002
- REDIS_HOST_URL=redis://dataflow_celery_redis:6379
- MONG_HOST_URL=mongodb://root:example@dataflow_mongo_db:27017
ports:
- "8000:8000"
depends_on:
- dataflow_celery_redis
- dataflow_mongo_db
- dataflow_postgres_db
- dataflow_celery_worker
networks:
- csg-network
networks:
csg-network:
driver: bridge