-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 1.06 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
version: '3'
services:
db:
build: ./db
restart: always
ports:
- 3306:3306
environment:
MYSQL_DATABASE: restful_api
MYSQL_ROOT_PASSWORD: 12345
backend-services:
build: ./backend
volumes:
- ./backend:/usr/src/app
- /usr/src/app/node_modules
ports:
- 5001:3000
depends_on:
- db
environment:
DB_HOST: db
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_PASS: 12345
MYSQL_DB: restful_api
APP_PORT: 3000
frontend-services:
build: ./frontend
stdin_open: true
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
ports:
- 5002:3000
links:
- backend-services
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
environment:
PMA_ARBITRARY: 1
restart: always
ports:
- 8899:80