Skip to content

Commit

Permalink
Update docker compose to include new Public API project (dotnet-archi…
Browse files Browse the repository at this point in the history
…tecture#414)

* Updating docker compose and override to also start the public api

* Update README
  • Loading branch information
efleming18 authored Jul 1, 2020
1 parent dd5a435 commit f89c20e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ You can run the Web sample by running these commands from the root folder (where
docker-compose up
```

You should be able to make requests to localhost:5106 once these commands complete.
You should be able to make requests to localhost:5106 for the Web project, and localhost:5200 for the Public API project once these commands complete.

You can also run the Web application by using the instructions located in its `Dockerfile` file in the root of the project. Again, run these commands from the root of the solution (where the .sln file is located).
You can also run the applications by using the instructions located in their `Dockerfile` file in the root of each project. Again, run these commands from the root of the solution (where the .sln file is located).

## Community Extensions
We have some great contributions from the community, and while these aren't maintained by Microsoft we still want to highlight them.
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ services:
- ASPNETCORE_URLS=http://+:80
ports:
- "5106:80"
volumes:
- ~/.aspnet/https:/root/.aspnet/https:ro
- ~/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro
eshoppublicapi:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:80
ports:
- "5200:80"
volumes:
- ~/.aspnet/https:/root/.aspnet/https:ro
- ~/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ services:
build:
context: .
dockerfile: src/Web/Dockerfile
eshoppublicapi:
image: ${DOCKER_REGISTRY-}eshoppublicapi
build:
context: .
dockerfile: src/PublicApi/Dockerfile

2 changes: 1 addition & 1 deletion src/PublicApi/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
"applicationUrl": "https://localhost:5099;http://localhost:5098"
},
"Docker": {
"commandName": "Docker",
Expand Down

0 comments on commit f89c20e

Please sign in to comment.