-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 914 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 914 Bytes
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
version: '3'
services:
mysql:
image: mysql:latest
restart: always
volumes:
- dbdata:/var/lib/mysql
ports:
- 3308:3306
cap_add:
- SYS_NICE
environment:
- MYSQL_DATABASE=sotong
- MYSQL_ROOT_PASSWORD=sotong
- MYSQL_USER=sotong
- MYSQL_PASSWORD=sotong
spring-boot:
restart: always
image: spring-boot
# command: "java -jar ./build/libs/demo-0.0.1-SNAPSHOT.jar"
build:
context: ./server
ports:
- 8080:8080
volumes:
- springdata:/usr/src:rw
- ./server/:/server/
depends_on:
- mysql
react:
build:
context: ./client
command: ["npm", "start"]
ports:
- 3000:3000
volumes:
- ./client/:/client
- ./client/node_modules/:/client/node_modules
environment:
- CI=true
- CHOKIDAR_USEPOLLING=true
tty: true
volumes:
dbdata:
springdata: