add docker-compose
This commit is contained in:
parent
2a74215dd9
commit
6d5f3e59c3
14
.idea/artifacts/eshop_war.xml
generated
Normal file
14
.idea/artifacts/eshop_war.xml
generated
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<component name="ArtifactManager">
|
||||||
|
<artifact type="war" name="eshop:war">
|
||||||
|
<output-path>$PROJECT_DIR$/out/artifacts/eshop_war</output-path>
|
||||||
|
<root id="archive" name="eshop_war.war">
|
||||||
|
<element id="artifact" artifact-name="eshop:war exploded" />
|
||||||
|
<element id="directory" name="WEB-INF">
|
||||||
|
<element id="directory" name="lib">
|
||||||
|
<element id="library" level="project" name="com.sun.xml.ws:jaxws-rt:2.3.2" />
|
||||||
|
<element id="library" level="project" name="lib" />
|
||||||
|
</element>
|
||||||
|
</element>
|
||||||
|
</root>
|
||||||
|
</artifact>
|
||||||
|
</component>
|
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
18
docker-compose.yml
Normal file
18
docker-compose.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user