Skip to content

Commit 94ac502

Browse files
committed
Improve docker debug
1 parent 8fbde2b commit 94ac502

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
- ./.volumes/database:/var/lib/mysql
1414

1515
api:
16-
build: ./
16+
image: maven:3.8.3
1717
links:
1818
- mariadb
1919
depends_on:
@@ -28,3 +28,5 @@ services:
2828
volumes:
2929
- ./:/app
3030
- ./.volumes/maven:/root/.m2
31+
working_dir: /app
32+
command: mvn spring-boot:run

dockerfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

logs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker logs $(docker ps -a | grep -i springboot-api-crud | awk {'print $1'}) -f
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
margin-bottom: 3.5rem;
3+
}

src/main/resources/templates/app/fragments/footer.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
<footer th:fragment="footer" class=" d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
1+
<footer
2+
th:fragment="footer"
3+
class="bg-light fixed-bottom d-flex flex-wrap justify-content-between align-items-center py-3 mt-4 border-top"
4+
>
25
<div class="mx-4 col-md-4 d-flex align-items-center">
36
<a href="/" class="mb-3 me-2 mb-md-0 text-muted text-decoration-none lh-1">
47
<img class="d-inline-block align-top" width="30" height="30" src="https://i.imgur.com/UJ9JMCC.png">

0 commit comments

Comments
 (0)