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