add docker-compose

This commit is contained in:
Prémel-Cabic Arnaud
2019-03-04 19:50:21 +01:00
parent 2a74215dd9
commit 6d5f3e59c3
3 changed files with 38 additions and 0 deletions

18
docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
version: "3"
services:
web:
image: tomcat:8-alpine
volumes:
- ./out/artifacts/eshop_war/eshop_war.war:/usr/local/tomcat/webapps/eshop.war
ports:
- 8080:8080
db:
image: mysql:5.6
environment:
- MYSQL_ROOT_PASSWORD=GaoDi0906
- MYSQL_DATABASE=eshop
ports:
- 3306:3306
volumes:
- ./eshop.sql:/docker-entrypoint-initdb.d/eshop.sql