forked from pingcap/ossinsight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (72 loc) · 1.77 KB
/
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
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
version: '3.9'
# tiup playground v6.1.0 -T oss --without-monitor --db.host 0.0.0.0 --tiflash 1
services:
data:
build:
context: ./backend
dockerfile: ./Dockerfile
args:
BUNDLE_WITHOUT: ''
EXECJS_RUNTIME: 'Node'
RAILS_ENV: 'development'
RAILS_SERVE_STATIC_FILES: 'false'
tty: true
stdin_open: true
image: hooopo/ossinsight-data:latest
restart: always
command: ["./start.sh"]
environment:
- NODE_ENV=development
- RAILS_ENV=development
- DATABASE_URL=${DATABASE_URL:-tidb://root:@host.docker.internal:4000/gharchive_dev}
- GITHUB_TOKEN=${GITHUB_TOKEN:?err}
- SKIP_REPLICA=1
api:
build:
context: ./api
dockerfile: ./Dockerfile
args:
NODE_ENV: 'development'
image: hooopo/ossinsight-api:latest
restart: always
ports:
- "3450:3450"
depends_on:
data:
condition: service_started
environment:
- DATABASE_URL=${DATABASE_URL:-tidb://root:@host.docker.internal:4000/gharchive_dev}
- CONNECTION_LIMIT=10
- QUEUE_LIMIT=20
- SERVER_PORT=3450
- GH_TOKENS=${GITHUB_TOKEN:?err}
- PREFETCH_CONCURRENT=1
- ENABLE_CACHE=0
fe:
image: hooopo/ossinsight-fe:latest
restart: always
build:
context: .
dockerfile: ./Dockerfile
args:
NODE_ENV: 'development'
ports:
- "30000:30000"
environment:
- NODE_ENV=development
- APP_HOST=http://localhost:3450
- APP_API_BASE=http://localhost:3450
volumes:
- ./:/app:delegated
- node_modules:/app/node_modules
- prefetch:/app/.prefetch
- docusaurus:/app/.docusaurus
networks:
default:
volumes:
packs:
node_modules:
cache:
bundle:
prefetch:
docusaurus: