-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yml
83 lines (80 loc) · 1.78 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
80
81
82
83
version: '3.9'
services:
mysql:
image: mysql
container_name: perfsee_mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_DATABASE=perfsee
volumes:
- ./.volumes/mysql:/var/lib/mysql
ports:
- 3306:3306
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
interval: 10s
timeout: 10s
retries: 10
start_period: 20s
redis:
image: redis
container_name: perfsee_redis
ports:
- 6379:6379
prepare:
image: perfsee_develop
build:
context: .
target: compose_develop
depends_on:
mysql:
condition: service_healthy
environment:
- MYSQL_HOST=mysql
command: yarn typeorm migration:run
server:
image: perfsee_develop
depends_on:
redis:
condition: service_started
mysql:
condition: service_started
prepare:
condition: service_completed_successfully
ports:
- 3000:3000
environment:
MYSQL_HOST: mysql
REDIS_HOST: redis
volumes:
- .:/code
- /code/node_modules
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/health']
interval: 10s
timeout: 10s
retries: 10
start_period: 20s
command: yarn dev -p @perfsee/platform-server
job-runner:
image: perfsee_develop
depends_on:
server:
condition: service_healthy
volumes:
- .:/code
- /code/node_modules
network_mode: host
command: yarn dev -p @perfsee/job-runner
frontend:
image: perfsee_develop
depends_on:
- server
ports:
- 8080:8080
volumes:
- .:/code
- /code/node_modules
environment:
PERFSEE_PLATFORM_HOST: http://server:3000
command: yarn dev -p @perfsee/platform