This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp-dev.yml
96 lines (93 loc) · 4.28 KB
/
app-dev.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.1'
services:
servicenetgateway-app:
image: servicenetgateway
environment:
- _JAVA_OPTIONS=-Xmx512m -Xms256m
- SPRING_PROFILES_ACTIVE=dev,swagger
- MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
- SPRING_CLOUD_CONSUL_HOST=consul
- SPRING_CLOUD_CONSUL_PORT=8500
- SPRING_DATASOURCE_URL=jdbc:postgresql://${POSTGRES_HOST:-servicenet-postgresql}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-ServiceNet}?currentSchema=gateway
- SPRING_DATASOURCE_USERNAME=${POSTGRES_USERNAME:-postgres}
- SPRING_DATASOURCE_PASSWORD=${POSTGRES_PASSWORD:-password}
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- RECAPTCHA_SITE_KEY=${RECAPTCHA_SITE_KEY}
- RECAPTCHA_SECRET_KEY=${RECAPTCHA_SECRET_KEY}
- JHIPSTER_OAUTH2_CLIENT_SECRET=${JHIPSTER_OAUTH2_CLIENT_SECRET:-changeme}
- SPRING_OAUTH2_CLIENT_SECRET=${SPRING_OAUTH2_CLIENT_SECRET:-changeme}
- SPRING_OAUTH2_SESSION_TIMEOUT=${SPRING_OAUTH2_SESSION_TIMEOUT:-3600}
- JHIPSTER_SLEEP=30 # gives time for other services to boot before the application
ports:
- 8080:8080
servicenet-app:
image: servicenet
environment:
- _JAVA_OPTIONS=-Xmx2048m -Xms1024m
- SPRING_PROFILES_ACTIVE=dev,swagger
- MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
- SPRING_CLOUD_CONSUL_HOST=consul
- SPRING_CLOUD_CONSUL_PORT=8500
- SPRING_DATASOURCE_URL=jdbc:postgresql://${POSTGRES_HOST:-servicenet-postgresql}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-ServiceNet}
- SPRING_DATASOURCE_USERNAME=${POSTGRES_USERNAME:-postgres}
- SPRING_DATASOURCE_PASSWORD=${POSTGRES_PASSWORD:-password}
- SPRING_DATA_MONGODB_URI=mongodb://${MONGODB_HOST:-servicenet-mongo}:${MONGODB_PORT:-27017}/${MONGODB_DB:-serviceNet}
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- EDEN_API_KEY=${EDEN_API_KEY}
- UWBA_API_KEY=${UWBA_API_KEY}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- FEEDBACK_RECEIVER_ADDRESS=${FEEDBACK_RECEIVER_ADDRESS:[email protected]}
- JHIPSTER_OAUTH2_CLIENT_SECRET=${JHIPSTER_OAUTH2_CLIENT_SECRET:-changeme}
- SPRING_OAUTH2_CLIENT_SECRET=${SPRING_OAUTH2_CLIENT_SECRET:-changeme}
- JHIPSTER_SLEEP=30 # gives time for other services to boot before the application
- TWILIO_ACCOUNT_SID=${TWILIO_ACCOUNT_SID}
- TWILIO_AUTH_TOKEN=${TWILIO_AUTH_TOKEN}
- TWILIO_PHONE_NUMBER=${TWILIO_PHONE_NUMBER}
servicenetauth-app:
image: servicenetauth
environment:
- _JAVA_OPTIONS=-Xmx512m -Xms256m
- SPRING_PROFILES_ACTIVE=dev,swagger
- MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
- SPRING_CLOUD_CONSUL_HOST=consul
- SPRING_CLOUD_CONSUL_PORT=8500
- SPRING_DATASOURCE_URL=jdbc:postgresql://${POSTGRES_HOST:-servicenet-postgresql}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-ServiceNet}?currentSchema=auth
- SPRING_DATASOURCE_USERNAME=${POSTGRES_USERNAME:-postgres}
- SPRING_DATASOURCE_PASSWORD=${POSTGRES_PASSWORD:-password}
- JHIPSTER_OAUTH2_CLIENT_SECRET=${JHIPSTER_OAUTH2_CLIENT_SECRET:-changeme}
- SPRING_OAUTH2_CLIENT_SECRET=${SPRING_OAUTH2_CLIENT_SECRET:-changeme}
- SPRING_OAUTH2_ACCESS_TOKEN_VALIDITY=${SPRING_OAUTH2_SESSION_TIMEOUT:-3600}
- SPRING_OAUTH2_REFRESH_TOKEN_VALIDITY=${SPRING_OAUTH2_SESSION_TIMEOUT:-604800}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- REGISTRATION_SENDER_ADDRESS=${REGISTRATION_SENDER_ADDRESS:[email protected]}
- FEEDBACK_RECEIVER_ADDRESS=${FEEDBACK_RECEIVER_ADDRESS:[email protected]}
- JHIPSTER_SLEEP=10 # gives time for other services to boot before the application
servicenet-postgresql:
image: postgres:10.12
volumes:
- ./init-db.sql:/docker-entrypoint-initdb.d/1-init.sql
environment:
- POSTGRES_USER=${POSTGRES_USERNAME:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}
# ports:
# - 5432:5432
servicenet-mongo:
image: mongo:4.0
restart: always
ports:
- 27017:27017
consul:
image: consul:1.6.2
ports:
- 8300:8300
- 8500:8500
- 8600:8600
command: consul agent -dev -ui -client 0.0.0.0
consul-config-loader:
image: jhipster/consul-config-loader:v0.3.0
volumes:
- ./central-server-config:/config
environment:
- INIT_SLEEP_SECONDS=5
- CONSUL_URL=consul
- CONSUL_PORT=8500