Update docker compose to include new Public API project (#414)
* Updating docker compose and override to also start the public api * Update README
This commit is contained in:
@@ -99,9 +99,9 @@ You can run the Web sample by running these commands from the root folder (where
|
|||||||
docker-compose up
|
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
|
## Community Extensions
|
||||||
We have some great contributions from the community, and while these aren't maintained by Microsoft we still want to highlight them.
|
We have some great contributions from the community, and while these aren't maintained by Microsoft we still want to highlight them.
|
||||||
|
|||||||
@@ -9,3 +9,12 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ~/.aspnet/https:/root/.aspnet/https:ro
|
- ~/.aspnet/https:/root/.aspnet/https:ro
|
||||||
- ~/.microsoft/usersecrets:/root/.microsoft/usersecrets: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
|
||||||
@@ -6,4 +6,9 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: src/Web/Dockerfile
|
dockerfile: src/Web/Dockerfile
|
||||||
|
eshoppublicapi:
|
||||||
|
image: ${DOCKER_REGISTRY-}eshoppublicapi
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: src/PublicApi/Dockerfile
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
},
|
},
|
||||||
"applicationUrl": "https://localhost:5001;http://localhost:5000"
|
"applicationUrl": "https://localhost:5099;http://localhost:5098"
|
||||||
},
|
},
|
||||||
"Docker": {
|
"Docker": {
|
||||||
"commandName": "Docker",
|
"commandName": "Docker",
|
||||||
|
|||||||
Reference in New Issue
Block a user