From 6d5f3e59c393a880803e9698b3379cad7a26f8fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pr=C3=A9mel-Cabic=20Arnaud?= Date: Mon, 4 Mar 2019 19:50:21 +0100 Subject: [PATCH] add docker-compose --- .idea/artifacts/eshop_war.xml | 14 ++++++++++++++ .idea/vcs.xml | 6 ++++++ docker-compose.yml | 18 ++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 .idea/artifacts/eshop_war.xml create mode 100644 .idea/vcs.xml create mode 100644 docker-compose.yml diff --git a/.idea/artifacts/eshop_war.xml b/.idea/artifacts/eshop_war.xml new file mode 100644 index 0000000..2d1aadf --- /dev/null +++ b/.idea/artifacts/eshop_war.xml @@ -0,0 +1,14 @@ + + + $PROJECT_DIR$/out/artifacts/eshop_war + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7e92fbe --- /dev/null +++ b/docker-compose.yml @@ -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 \ No newline at end of file