-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.18 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.18 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
version: '3.9'
services:
online-api:
build:
context: .
dockerfile: src/backend/online/api/Dockerfile
command: ["uv", "run", "python", "src/backend/online/api/main.py", "--host", "0.0.0.0", "--port", "18080", "--tag", "easy"]
ports:
- "18080:18080"
volumes:
- ./:/app
environment:
- QILIN_REDIS_URL=redis://redis:6379/0
depends_on:
- redis
- elasticsearch
frontend:
build:
context: ./src/frontend
dockerfile: Dockerfile
command: ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5173"]
environment:
- VITE_API_BASE=http://127.0.0.1:18080
ports:
- "5173:5173"
depends_on:
- online-api
redis:
image: redis:7-alpine
ports:
- "6379:6379"
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis_data:/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms1g -Xmx1g
ports:
- "9200:9200"
volumes:
- es_data:/usr/share/elasticsearch/data
volumes:
redis_data:
es_data: