Skip to content

Commit

Permalink
#110: appsettings updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Jan 13, 2024
1 parent 3224210 commit d0cd674
Show file tree
Hide file tree
Showing 16 changed files with 56 additions and 27 deletions.
2 changes: 1 addition & 1 deletion SwiftParcel.API.Gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ WORKDIR /app
COPY --from=build /app/out .
ENV ASPNETCORE_URLS http://*:80
ENV ASPNETCORE_ENVIRONMENT docker
ENTRYPOINT ["dotnet", "SwiftParcel.Services.Customers.Api.dll"]
ENTRYPOINT ["dotnet", "SwiftParcel.API.Gateway.dll"]
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
},
"seq": {
"enabled": true,
"url": "http://localhost:5341",
"url": "http://seq:5341",
"apiKey": "secret"
}
},
"metrics": {
"enabled": true,
"influxEnabled": false,
"prometheusEnabled": true,
"influxUrl": "http://localhost:8086",
"influxUrl": "http://influx:8086",
"database": "swiftparcel",
"env": "local",
"interval": 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "http://consul:8500",
"service": "lecturer-api-service",
"address": "lecturer-api-service",
"port": "5013",
"port": "80",
"pingEnabled": true,
"pingEndpoint": "ping",
"pingInterval": 3,
Expand All @@ -21,7 +21,7 @@
"service": "lecturer-api-service"
},
"httpClient": {
"type": "",
"type": "direct",
"retries": 3,
"services": {
"lecturer-api": "https://mini.currier.api.snet.com.pl",
Expand Down Expand Up @@ -129,7 +129,7 @@
"virtualHost": "/",
"port": 5672,
"hostnames": [
"localhost"
"rabbitmq"
],
"requestedConnectionTimeout": "00:00:30",
"requestedHeartbeat": "00:01:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"virtualHost": "/",
"port": 5672,
"hostnames": [
"localhost"
"rabbitmq"
],
"requestedConnectionTimeout": "00:00:30",
"requestedHeartbeat": "00:01:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"virtualHost": "/",
"port": 5672,
"hostnames": [
"localhost"
"rabbitmq"
],
"requestedConnectionTimeout": "00:00:30",
"requestedHeartbeat": "00:01:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"virtualHost": "/",
"port": 5672,
"hostnames": [
"localhost"
"rabbitmq"
],
"requestedConnectionTimeout": "00:00:30",
"requestedHeartbeat": "00:01:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"virtualHost": "/",
"port": 5672,
"hostnames": [
"localhost"
"rabbitmq"
],
"requestedConnectionTimeout": "00:00:30",
"requestedHeartbeat": "00:01:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"virtualHost": "/",
"port": 5672,
"hostnames": [
"localhost"
"rabbitmq"
],
"requestedConnectionTimeout": "00:00:30",
"requestedHeartbeat": "00:01:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"service": "orders-service",
"address": "orders-service",
"port": "80",
"pingEnabled": false,
"pingEnabled": true,
"pingEndpoint": "ping",
"pingInterval": 3,
"removeAfterInterval": 3
Expand Down Expand Up @@ -127,7 +127,7 @@
"virtualHost": "/",
"port": 5672,
"hostnames": [
"localhost"
"rabbitmq"
],
"requestedConnectionTimeout": "00:00:30",
"requestedHeartbeat": "00:01:00",
Expand Down Expand Up @@ -157,7 +157,7 @@
"spanContextHeader": "span_context"
},
"redis": {
"connectionString": "localhost",
"connectionString": "redis",
"instance": "orders:"
},
"swagger": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"virtualHost": "/",
"port": 5672,
"hostnames": [
"localhost"
"rabbitmq"
],
"requestedConnectionTimeout": "00:00:30",
"requestedHeartbeat": "00:01:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@
"enabled": true,
"url": "http://consul:8500",
"service": "parcels-service",
"address": "localhost",
"address": "parcels-service",
"port": "80",
"pingEnabled": false,
"pingEnabled": true,
"pingEndpoint": "ping",
"pingInterval": 3,
"removeAfterInterval": 3
},
"fabio": {
"enabled": false,
"enabled": true,
"url": "http://fabio:9999",
"services": {
"pricing": "pricing-service",
"lecturer-api": "lecturer-api"
}
},
"httpClient": {
"type": "direct",
"type": "fabio",
"retries": 3,
"services": {
"pricing": "http://localhost:5008",
Expand Down Expand Up @@ -125,7 +125,7 @@
"virtualHost": "/",
"port": 5672,
"hostnames": [
"localhost"
"rabbitmq"
],
"requestedConnectionTimeout": "00:00:30",
"requestedHeartbeat": "00:01:00",
Expand Down Expand Up @@ -155,7 +155,7 @@
"spanContextHeader": "span_context"
},
"redis": {
"connectionString": "localhost",
"connectionString": "redis",
"instance": "parcels:"
},
"swagger": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"virtualHost": "/",
"port": 5672,
"hostnames": [
"localhost"
"rabbitmq"
],
"requestedConnectionTimeout": "00:00:30",
"requestedHeartbeat": "00:01:00",
Expand Down
6 changes: 3 additions & 3 deletions SwiftParcel/d-docker-compose/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
- swiftparcel

parcels-service:
image: adrianvsaint/swift-parcel-pricing-service
image: adrianvsaint/swift-parcel-parcels-service
container_name: parcels-service
restart: unless-stopped
ports:
Expand Down Expand Up @@ -65,9 +65,9 @@ services:
networks:
- swiftparcel

api-lecturer-service:
lecturer-api-service:
image: adrianvsaint/swift-parcel-external-api-lecturer-service
container_name: external-api-lecturer-service
container_name: lecturer-api-service
restart: unless-stopped
ports:
- 5004:80
Expand Down
29 changes: 29 additions & 0 deletions SwiftParcel/dockerize_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

directories=(
# "SwiftParcel.API.Gateway"
"SwiftParcel.ExternalAPI.Lecturer"
# "SwiftParcel.Services.Customers"
# "SwiftParcel.Services.Deliveries"
# "SwiftParcel.Services.Orders"
"SwiftParcel.Services.Parcels"
# "SwiftParcel.Services.Pricing"
# "SwiftParcel.Web"
# "SwifttParcel.Services.Identity"
)

cd ..

for dir in "${directories[@]}"; do
echo "Processing $dir..."

if [ -f "$dir/scripts/dockerize.sh" ]; then
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "
(cd "$dir/scripts" && ./dockerize.sh)
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "
else
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "
echo "dockerize.sh not found in $dir"
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "
fi
done
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"influxEnabled": false,
"prometheusEnabled": true,
"influxUrl": "http://influx:8086",
"database": "pacco",
"database": "swift-parcel",
"env": "docker",
"interval": 5
},
Expand Down Expand Up @@ -169,7 +169,7 @@
"virtualHost": "/",
"port": 5672,
"hostnames": [
"localhost"
"rabbitmq"
],
"requestedConnectionTimeout": "00:00:30",
"requestedHeartbeat": "00:01:00",
Expand Down

0 comments on commit d0cd674

Please sign in to comment.