Skip to content

Commit df0727b

Browse files
committed
Update docker-compose.yaml to add the api
1 parent 7ad93cb commit df0727b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docker-compose.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
version: '3.8'
22

33
services:
4+
mooc-api:
5+
build: .
6+
environment:
7+
MOOC_HOST: 0.0.0.0
8+
MOOC_DBHOST: mysql
9+
ports:
10+
- 8080:8080
11+
412
mysql:
513
image: mysql:8.0.22
6-
ports:
7-
- 3306:3306
814
volumes:
915
- mysql_data:/var/lib/mysql
1016
- ./sql:/docker-entrypoint-initdb.d

0 commit comments

Comments
 (0)