-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.debug.yml
58 lines (57 loc) · 1.15 KB
/
docker-compose.debug.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
version: '3.4'
services:
express_api_architecture_prototype:
image: express_api_architecture_prototype
build: .
environment:
NODE_DEBUG_PORT: 9229
NODE_ENV: development
PORT: 3000
REDIS_HOST: "redis"
REDIS_PORT: 6379
REDIS_AUTH: ""
DB_HOST: "mysql"
DB_USER: "root"
DB_PASSWORD: "root"
DB_NAME: "api_test"
ports:
- 3000:3000
- 9229:9229
depends_on:
- redis
- mysql
volumes:
- .:/home/node/app
command: sh -c "cd /home/node/app && yarn dev"
redis:
image: redis
ports:
- 6379
redis_commander:
image: rediscommander/redis-commander
ports:
- 6378:6378
depends_on:
- redis
environment:
PORT: 6378
REDIS_PORT: 6379
REDIS_HOST: "redis"
mysql:
image: mysql
ports:
- 3306:3306
environment:
MYSQL_USER: "root"
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "api_test"
volumes:
- ./mysql_data:/var/lib/mysql
mysql_admin:
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
environment:
PMA_HOST: "mysql"
depends_on:
- mysql