Skip to content

Commit

Permalink
Solved docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jherel committed Apr 25, 2017
1 parent 961b43d commit 9e70108
Show file tree
Hide file tree
Showing 32 changed files with 101,719 additions and 835 deletions.
5 changes: 4 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM java:8
COPY target/src src/
CMD ["ls"]
EXPOSE 8443
ADD /target/SpringDocker.jar SpringDocker.jar
ENTRYPOINT ["java","-jar","SpringDocker.jar"]
ENTRYPOINT ["java","-jar","SpringDocker.jar"]

4 changes: 2 additions & 2 deletions backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ server.ssl.key-store-password = password
server.ssl.key-password = secret
spring.h2.console.enabled=true

spring.datasource.url = jdbc:mysql://localhost/brems?verifyServerCertificate=false&useSSL=true
spring.datasource.username = root
spring.datasource.url = jdbc:mysql://bremsHost:3306/brems?verifyServerCertificate=false&useSSL=true
spring.datasource.username = user
spring.datasource.password = 1234
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.jpa.hibernate.ddl-auto = create-drop
Expand Down
2 changes: 1 addition & 1 deletion backend/target/classes/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Implementation-Title: appSpring
Implementation-Version: 0.0.1
Built-By: c.vazquezlos
Built-By: jherel
Implementation-Vendor-Id: es.urjc.daw
Build-Jdk: 1.8.0_121
Implementation-URL: http://projects.spring.io/spring-boot/appSpring/
Expand Down
4 changes: 2 additions & 2 deletions backend/target/classes/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ server.ssl.key-store-password = password
server.ssl.key-password = secret
spring.h2.console.enabled=true

spring.datasource.url = jdbc:mysql://localhost/brems?verifyServerCertificate=false&useSSL=true
spring.datasource.username = root
spring.datasource.url = jdbc:mysql://bremsHost:3306/brems?verifyServerCertificate=false&useSSL=true
spring.datasource.username = user
spring.datasource.password = 1234
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.jpa.hibernate.ddl-auto = create-drop
Expand Down
12 changes: 10 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ services:
- MYSQL_DATABASE=brems
- MYSQL_USER=user
- MYSQL_PASSWORD=1234
spring-boot-jpa-docker-webapp:
image: jherel/brems
webapp:
image: brems
depends_on:
- bremsHost
ports:
Expand All @@ -20,3 +20,11 @@ services:
- DATABASE_PASSWORD=1234
- DATABASE_NAME=brems
- DATABASE_PORT=3306
bremsAngular:
image: jherel/brems-angular
depends_on:
- webapp
ports:
- 4200:80
environment:
- API_URL=webapp
2 changes: 2 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM nginx
COPY dist /usr/share/nginx/html
1 change: 0 additions & 1 deletion frontend/dist/0.a5cd1cf7c61718cab898.chunk.js

This file was deleted.

1,435 changes: 1,435 additions & 0 deletions frontend/dist/0.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/dist/0.chunk.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion frontend/dist/1.1e7c39ae49e6ce05e0a3.chunk.js

This file was deleted.

1,326 changes: 1,326 additions & 0 deletions frontend/dist/1.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/dist/1.chunk.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions frontend/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link href="styles.c5ac2ad4f41693055bd3.bundle.css" rel="stylesheet"/></head>
</head>

<body class="hold-transition skin-blue sidebar-mini">
<app-root>Loading...</app-root>
<script type="text/javascript" src="inline.370fd55ee519fd8c20b4.bundle.js"></script><script type="text/javascript" src="polyfills.6e05abdb22be14b8ee4d.bundle.js"></script><script type="text/javascript" src="vendor.1edd72694390150883c6.bundle.js"></script><script type="text/javascript" src="main.2456986fdff5942bd93f.bundle.js"></script></body>
<script type="text/javascript" src="inline.bundle.js"></script><script type="text/javascript" src="polyfills.bundle.js"></script><script type="text/javascript" src="styles.bundle.js"></script><script type="text/javascript" src="vendor.bundle.js"></script><script type="text/javascript" src="main.bundle.js"></script></body>

</html>
1 change: 0 additions & 1 deletion frontend/dist/inline.370fd55ee519fd8c20b4.bundle.js

This file was deleted.

146 changes: 146 additions & 0 deletions frontend/dist/inline.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/dist/inline.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion frontend/dist/main.2456986fdff5942bd93f.bundle.js

This file was deleted.

Loading

0 comments on commit 9e70108

Please sign in to comment.