@@ -8,21 +8,63 @@ services:
8
8
- SPRING_PROFILES_ACTIVE=prod,api-docs
9
9
- MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
10
10
- SPRING_DATASOURCE_URL=jdbc:postgresql://blog-postgresql:5432/blog
11
+ - SPRING_DATASOURCE_USERNAME=blog
12
+ - SPRING_DATASOURCE_PASSWORD=blog
11
13
- SPRING_LIQUIBASE_URL=jdbc:postgresql://blog-postgresql:5432/blog
14
+ -
EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE=http://admin:[email protected] :8761/eureka/
12
15
- JHIPSTER_SLEEP=30 # gives time for other services to boot before the application
13
16
# If you want to expose these ports outside your dev PC,
14
17
# remove the "127.0.0.1:" prefix
15
18
ports :
16
- - 127.0.0.1:8080:8080
19
+ - " 8080:8080"
20
+ depends_on :
21
+ - blog-postgresql
22
+ - eureka-server
23
+ # - zipkin
24
+ - jhipster-control-center
17
25
blog-postgresql :
18
26
image : postgres:14.2
19
27
# volumes:
20
28
# - ~/volumes/jhipster/blog/postgresql/:/var/lib/postgresql/data/
21
29
environment :
30
+ - POSTGRES_DB=blog
22
31
- POSTGRES_USER=blog
23
- - POSTGRES_PASSWORD=
32
+ - POSTGRES_PASSWORD=blog
24
33
- POSTGRES_HOST_AUTH_METHOD=trust
25
- # If you want to expose these ports outside your dev PC,
26
- # remove the "127.0.0.1:" prefix
27
34
ports :
28
- - 127.0.0.1:5432:5432
35
+ - " 5432:5432"
36
+ eureka-server :
37
+ image : taskbeez/eureka-server:master
38
+ hostname : eureka-server
39
+ ports :
40
+ - " 8761:8761"
41
+ # config-server:
42
+ # image: hyness/spring-cloud-config-server:latest
43
+ # ports:
44
+ # - "8888:8888"
45
+ # links:
46
+ # - "eureka-server"
47
+ # volumes:
48
+ # - ./config-server/config:/app/config
49
+ # zipkin:
50
+ # image: openzipkin/zipkin:2.23
51
+ # ports:
52
+ # - "9411:9411"
53
+ jhipster-control-center :
54
+ image : ' jhipster/jhipster-control-center:v0.5.0'
55
+ command :
56
+ - /bin/sh
57
+ - -c
58
+ # Patch /etc/hosts to support resolving host.docker.internal to the internal IP address used by the host in all OSes
59
+ - echo "`ip route | grep default | cut -d ' ' -f3` host.docker.internal" | tee -a /etc/hosts > /dev/null && java -jar /jhipster-control-center.jar
60
+ environment :
61
+ - _JAVA_OPTIONS=-Xmx512m -Xms256m
62
+ - SPRING_PROFILES_ACTIVE=prod,api-docs,no
63
+ - JHIPSTER_SLEEP=30 # gives time for other services to boot before the application
64
+ - SPRING_SECURITY_USER_PASSWORD=admin
65
+ # The token should have the same value than the one declared in you Spring configuration under the jhipster.security.authentication.jwt.base64-secret configuration's entry
66
+ - JHIPSTER_SECURITY_AUTHENTICATION_JWT_BASE64_SECRET=NzI1ZDlhYWU4MjNiZDBlZjVhMTZiNjliMmRlNDA3N2QyM2MyYmIxYTE2ZWFmNzJmMzExMWZjMWNiMDhjZGY5NjQxNzUyZTg3Yjc0NmZiMTIxZGI5NTA2MzQ4MzlkNTE5Y2UzMDM2MWVkMTRkOWUyZTRlNTllNzJkMzEzOWRiNDY=
67
+ - SPRING_CLOUD_DISCOVERY_CLIENT_SIMPLE_INSTANCES_BLOG_0_URI=http://host.docker.internal:8080
68
+ - LOGGING_FILE_NAME=/tmp/jhipster-control-center.log
69
+ ports :
70
+ - " 7419:7419"
0 commit comments