adding docker-compose file

This commit is contained in:
Robert Glenn 2018-01-02 23:25:49 -08:00
parent 2441e3805b
commit e4092fb140
2 changed files with 17 additions and 1 deletions

View File

@ -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
View 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"