-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (53 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
54 lines (53 loc) · 1.31 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
services:
postgres_db:
restart: unless-stopped
image: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/postgres
volumes:
- postgres_db:/var/lib/postgresql/data
command: -p ${DATABASE_PORT}
environment:
- POSTGRES_DB=${DATABASE_DB}
- POSTGRES_USER=${DATABASE_USERNAME}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
env_file:
- .env
expose:
- ${DATABASE_PORT}
ports:
- "5433:${DATABASE_PORT}"
-
celery_redis:
image: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsghq/redis:7.2.5
container_name: redis
restart: always
ports:
- "6379:6379"
volumes:
- celery_redis_data:/data
api_server:
build: .
env_file:
- .env
volumes:
# - .:/dataflow
- ${DATA_DIR}:${DATA_DIR}
ports:
- "8000:8000"
depends_on:
- postgres_db
# command: ["uvicorn", "data_server.main:app", "--host", "0.0.0.0", "--port", "8000"]
mongo_db:
image: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsghq/mongo:8.0.12
container_name: mongo_db
restart: always
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example1
volumes:
postgres_db:
celery_redis_data:
mongo_data: