-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 1.07 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
version: "3.9"
services:
uts-frontend:
build:
context: ./react-app
dockerfile: Dockerfile
restart: always
depends_on:
- uts-backend
- uts-mysql-db
ports:
- 3000:3000
volumes:
- /app/node_modules
- uts-frontend:/app
stdin_open: true
uts-backend:
build:
context: ./rest-api
dockerfile: Dockerfile
restart: always
depends_on:
- uts-mysql-db
ports:
- 8080:8080
volumes:
- uts-backend-target:/app/target
uts-mysql-db:
image: mysql:5.7
platform: linux/x86_64
volumes:
- uts-mysql-db-data:/var/lib/mysql
restart: always
ports:
- 3306:3306
environment:
MYSQL_HOST: localhost
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: UniversityTransportSystem
volumes:
uts-mysql-db-data: {}
uts-backend-target: {}
uts-frontend: {}