finalized docker

This commit is contained in:
GasparAM 2023-04-14 13:18:25 +04:00
parent fe7cc235b6
commit 0e2cec00a4
3 changed files with 25 additions and 7 deletions

3
.gitignore vendored
View file

@ -15,4 +15,5 @@ build/*
_site/
*.css
!petclinic.css
.key
.key
.env

View file

@ -4,14 +4,14 @@ services:
spring-petclinic:
build: ./
ports:
- "8080:8080"
- "8020:8080"
environment:
- DB="--spring.profiles.active=postgres"
- DB=--spring.profiles.active=postgres
env_file:
- .env
postgres:
image: postgres:15.2
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=petclinic
- POSTGRES_USER=petclinic
- POSTGRES_DB=petclinic
env_file:
- .env

17
pom.xml
View file

@ -130,6 +130,23 @@
</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>
<plugins>
<plugin>