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/ _site/
*.css *.css
!petclinic.css !petclinic.css
.key .key
.env

View file

@ -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
View file

@ -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>