diff --git a/README.md b/README.md index db0d77a..a9896a0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cf8c538 --- /dev/null +++ b/docker-compose.yml @@ -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" +