-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker.compose.yaml.example.prod
114 lines (110 loc) · 5.26 KB
/
docker.compose.yaml.example.prod
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: "3"
services:
mysql:
image: mysql:latest
restart: always
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
# set myusername and mypassword to desired username and password
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "myusername", "-pmypassword"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
user-service:
image: duckkecach/user-service:latest
container_name: user-service-container
restart: always
ports:
- "8080:8080"
environment:
SPRING_APPLICATION_JSON: '{
"spring.datasource.url": "jdbc:mysql://mysql:3306/bank_userservice",
"spring.datasource.username": "myusername",
"spring.datasource.password": "mypassword",
"spring.jpa.properties.hibernate.dialect" : "org.hibernate.dialect.MySQL8Dialect",
"spring.jpa.hibernate.ddl-auto" : "update",
"oauth.jwt.secret": "my_secret",
"spring.mail.host":"smtp.gmail.com",
"spring.mail.port":587,
"spring.mail.username":"noreply.rafbanka1@gmail.com",
"spring.mail.password":"fony nhtw hlah vzul",
"spring.mail.properties.mail.smtp.auth":true,
"spring.mail.properties.mail.smtp.starttls.enable":true,
"server.port": 8080,
"front.port": 4200,
"springdoc.packagesToScan": "rs.edu.raf.banka1.controller",
"exchangeRateAPIToken": "5eb8b116c5d704eea74c42f1",
"exchangeRateApiUrl": "https://v6.exchangerate-api.com/v6/",
"marketServiceUrl" = "http://market-service:8081"
}'
depends_on:
mysql:
condition: service_healthy
market-service:
image: duckkecach/market-service:latest
container_name: market-service-container
restart: always
ports:
- "8081:8081" # Adjust the port as needed
environment:
SPRING_APPLICATION_JSON: '{
"spring.datasource.url": "jdbc:mysql://mysql:3306/bank_marketservice",
"spring.datasource.username": "myusername",
"spring.datasource.password": "mypassword",
"spring.jpa.properties.hibernate.dialect" : "org.hibernate.dialect.MySQL8Dialect",
"spring.jpa.hibernate.ddl-auto" : "update",
"oauth.jwt.secret": "secret_key",
"listingAPItoken": "pk_f87286e075c94cc484405da70691c030",
"alphaVantageAPIToken":"OF6BVKZOCXWHD9NS",
"forexAPItoken": "cnr3i41r01qs2jr5d5bgcnr3i41r01qs2jr5d5c0",
"listingNameApiUrl":"https://api.iex.cloud/v1/data/core/stock_collection/sector?collectionName=",
"updateListingApiUrl":"https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=",
"basicStockInfoApiUrl":"https://www.alphavantage.co/query?function=OVERVIEW&symbol=",
"HistoryListingApiUrl":"https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=",
"forexExchangePlaceApiUrl":"https://finnhub.io/api/v1/forex/exchange?token=",
"forexSymbolsApiUrl":"https://finnhub.io/api/v1/forex/symbol?exchange=",
"forexExchangeRateApiUrl":"https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE",
"forexDailyApiUrl":"https://www.alphavantage.co/query?function=FX_DAILY",
"optionsUrl":"https://query2.finance.yahoo.com/v7/finance/options/",
"springdoc.packagesToScan": "rs.edu.raf.banka1.controller",
"dev.environment": false
}'
depends_on:
mysql:
condition: service_healthy
fetching-service:
image: duckkecach/fetching-service:latest
container_name: fetching-service-container
restart: always
ports:
- "8082:8082" # Adjust the port as needed
environment:
SPRING_APPLICATION_JSON: '{
"spring.datasource.url": "jdbc:mysql://mysql:3306/bank_marketservice",
"spring.datasource.username": "myusername",
"spring.datasource.password": "mypassword",
"spring.jpa.properties.hibernate.dialect" : "org.hibernate.dialect.MySQL8Dialect",
"spring.jpa.hibernate.ddl-auto" : "update",
"oauth.jwt.secret": "secret_key",
"listingAPItoken": "pk_f87286e075c94cc484405da70691c030",
"alphaVantageAPIToken":"OF6BVKZOCXWHD9NS",
"forexAPItoken": "cnr3i41r01qs2jr5d5bgcnr3i41r01qs2jr5d5c0",
"listingNameApiUrl":"https://api.iex.cloud/v1/data/core/stock_collection/sector?collectionName=",
"updateListingApiUrl":"https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=",
"basicStockInfoApiUrl":"https://www.alphavantage.co/query?function=OVERVIEW&symbol=",
"HistoryListingApiUrl":"https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=",
"forexExchangePlaceApiUrl":"https://finnhub.io/api/v1/forex/exchange?token=",
"forexSymbolsApiUrl":"https://finnhub.io/api/v1/forex/symbol?exchange=",
"forexExchangeRateApiUrl":"https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE",
"forexDailyApiUrl":"https://www.alphavantage.co/query?function=FX_DAILY",
"optionsUrl":"https://query2.finance.yahoo.com/v7/finance/options/",
"springdoc.packagesToScan": "rs.edu.raf.banka1.controller",
"dev.environment": false
}'
depends_on:
mysql:
condition: service_healthy