changed port to 8083 and added expose
authoraic.eichhorner.1227328 <e1227328@student.tuwien.ac.at>
Fri, 23 Nov 2018 13:58:23 +0000 (14:58 +0100)
committeraic.eichhorner.1227328 <e1227328@student.tuwien.ac.at>
Fri, 23 Nov 2018 13:58:23 +0000 (14:58 +0100)
docker-compose.yml
service-reporting/Dockerfile
service-reporting/readme.md

index 8e7d00e3bf421251291167e2958e7943d4a57cc5..58b4096ef8e8f8a1c703b6f3c99c67767641b5c9 100644 (file)
@@ -30,7 +30,7 @@ services:
     build: ./service-reporting
     container_name: reporting
     ports:
-      - "8083:80"
+      - "8083:8083"
     restart: always
 
   service-twitter:
index c372a86268a66c353f174f71bb42fd6f4f981a65..080fad49232e75fcdb1b14d5c2f59a51994d836b 100644 (file)
@@ -1,6 +1,7 @@
 FROM microsoft/dotnet:2.2.100-preview3-sdk AS build-env
 WORKDIR /app
 
+
 # Copy csproj and restore as distinct layers
 COPY *.csproj ./
 RUN dotnet restore
@@ -14,6 +15,10 @@ FROM microsoft/dotnet:2.2.0-preview3-aspnetcore-runtime
 WORKDIR /app
 COPY --from=build-env /app/out .
 
+# set ports
+EXPOSE 8083            
+ENV ASPNETCORE_URLS=http://+:8083
+
 # copy pdf library
 # COPY libwkhtmltox.* ./
 # install additional libaries
@@ -29,7 +34,6 @@ RUN apt-get update \
         --location \
         https://github.com/rdvojmoc/DinkToPdf/raw/v1.0.8/v0.12.4/64%20bit/libwkhtmltox.so
 
-               
 # copy assets
 COPY assets/*.css ./assets/            
 ENTRYPOINT ["dotnet", "PdfService.dll"]
\ No newline at end of file
index 4e70534d72ab73128e01e045870330de2b8a5dbc..7a08567809bf1f4af0077f8a5352212b48954f1c 100644 (file)
@@ -16,7 +16,7 @@ Tweet(string `Name`, string `Sentiment`)
 ## run with docker
 
 - `docker build -t service-reporting .`    
-- `docker run -p YOUR_PORT:80 service-reporting:latest`
+- `docker run -p YOUR_PORT:8083 service-reporting:latest`
 
 ## run local
 ### requirements