mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
finalized docker
This commit is contained in:
parent
fe7cc235b6
commit
0e2cec00a4
3 changed files with 25 additions and 7 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -15,4 +15,5 @@ build/*
|
||||||
_site/
|
_site/
|
||||||
*.css
|
*.css
|
||||||
!petclinic.css
|
!petclinic.css
|
||||||
.key
|
.key
|
||||||
|
.env
|
|
@ -4,14 +4,14 @@ services:
|
||||||
spring-petclinic:
|
spring-petclinic:
|
||||||
build: ./
|
build: ./
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8020:8080"
|
||||||
environment:
|
environment:
|
||||||
- DB="--spring.profiles.active=postgres"
|
- DB=--spring.profiles.active=postgres
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:15.2
|
image: postgres:15.2
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
environment:
|
env_file:
|
||||||
- POSTGRES_PASSWORD=petclinic
|
- .env
|
||||||
- POSTGRES_USER=petclinic
|
|
||||||
- POSTGRES_DB=petclinic
|
|
||||||
|
|
17
pom.xml
17
pom.xml
|
@ -130,6 +130,23 @@
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<reporting>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||||
|
<version>3.2.1</version>
|
||||||
|
<reportSets>
|
||||||
|
<reportSet>
|
||||||
|
<reports>
|
||||||
|
<report>checkstyle</report>
|
||||||
|
</reports>
|
||||||
|
</reportSet>
|
||||||
|
</reportSets>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</reporting>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
Loading…
Reference in a new issue