adding docker-compose file
This commit is contained in:
parent
2441e3805b
commit
e4092fb140
@ -42,7 +42,7 @@ You need Java installed.
|
||||
|
||||
You need Docker installed.
|
||||
|
||||
docker run -p 8080:8080 -d --name spring-boot-realworld-example-app allthethings/spring-boot-realworld-example-app
|
||||
docker-compose up -d
|
||||
|
||||
# Run test
|
||||
|
||||
|
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal file
@ -0,0 +1,16 @@
|
||||
version: '3'
|
||||
services:
|
||||
spring_boot_realworld_example_app:
|
||||
image: allthethings/spring-boot-realworld-example-app
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: mysql
|
||||
environment:
|
||||
- "MYSQL_ALLOW_EMPTY_PASSWORD=true"
|
||||
ports:
|
||||
- "3306:3306"
|
||||
|
Loading…
Reference in New Issue
Block a user