-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.05 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
version: "3.2"
services:
maven:
tty: true
container_name: ensf409-finalProject-maven-container
build:
context: .
dockerfile: Dockerfile.maven
ports:
- 36295:36295
environment:
WAIT_HOSTS: mysql:3306
WAIT_HOSTS_TIMEOUT: 300
WAIT_SLEEP_INTERVAL: 30
WAIT_HOST_CONNECT_TIMEOUT: 30
depends_on:
- mysql
command: sh -c "/wait && mvn --no-transfer-progress spring-boot:run"
react:
tty: true
container_name: ensf409-finalProject-react-container
build:
context: .
dockerfile: Dockerfile.react.prod
ports:
- 5000:5000
depends_on:
- maven
mysql:
container_name: ensf409-finalProject-database-container
build:
context: .
dockerfile: Dockerfile.database
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: "db"
MYSQL_ROOT_PASSWORD: "eNsF409"
MYSQL_USER: scm
MYSQL_PASSWORD: ensf409
MYSQL_ROOT_HOST: "%"
ports:
- "26289:3306"
expose:
- "3306"