forked from igor-dmitriev/spring-petclinic-hibernate-caching
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·43 lines (41 loc) · 1.3 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3'
services:
application:
build:
context: .
dockerfile: Dockerfile
args:
jarFile: application/build/libs/spring-petclinic-1.7.0-SNAPSHOT.jar
command: -m 2056m
volumes:
- ./application/build/jacocoagent:/jacocoagent
- ./ui-tests/build/jacoco:/jacocoreport
ports:
- 8070:8080
- 9999:9999
entrypoint: [
"java",
"-Dcom.sun.management.jmxremote",
"-Dcom.sun.management.jmxremote.local.only=false",
"-Dcom.sun.management.jmxremote.ssl=false",
"-Dcom.sun.management.jmxremote.authenticate=false",
"-Dcom.sun.management.jmxremote.port=9999",
"-Dcom.sun.management.jmxremote.rmi.port=9999",
"-Djava.rmi.server.hostname=localhost",
"-Djava.security.egd=file:/dev/./urandom",
"-javaagent:/jacocoagent/jacocoagent.jar=output=file,destfile=/jacocoreport/test.exec,append=false,dumponexit=false,jmx=true",
"-jar",
"/app.jar"
]
environment:
- SPRING_DATASOURCE_URL=jdbc:p6spy:postgresql://postgres:5432/petclinic
depends_on:
- postgres
postgres:
image: postgres:9.6.1
ports:
- 5422:5432
environment:
- POSTGRES_DB=petclinic
- POSTGRES_USER=petclinic
- POSTGRES_PASSWORD=q9KqUiu2vqnAuf