-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 905 Bytes
/
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
version: '4.10'
services:
bugtracker_mysql:
image: mysql:8.0
volumes:
- ./storage/mysql:/var/lib/mysql
- ./init.sql:/data/application/init.sql
restart: always
command: --init-file /data/application/init.sql
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
bugtracker_nodejs:
image: node:16.3.0
working_dir: /home/node/app
environment:
- NODE_ENV=development
volumes:
- .:/home/node/app
- /home/node/app/node_modules
expose:
- "8081"
command: bash -c "npm install && npm start"
depends_on:
- bugtracker_mysql
ports:
- 4968:4968
bugtracker_phpmyadmin:
image: phpmyadmin
restart: always
links:
- bugtracker_mysql
environment:
PMA_HOST: bugtracker_mysql
PMA_PASSWORD: root
PMA_PORT: 3306
PMA_ARBITRARY: 1
ports:
- 4000:80