https://github.com/bytedecoder/publisher-docker
Getting Started with .NET Core, Docker, and RabbitMQ
https://github.com/bytedecoder/publisher-docker
autofac-container chsarp console-application docker docker-compose dotnet-core rabbitmq swagger-documentation web-api-core xunit-tests
Last synced: 10 months ago
JSON representation
Getting Started with .NET Core, Docker, and RabbitMQ
- Host: GitHub
- URL: https://github.com/bytedecoder/publisher-docker
- Owner: ByteDecoder
- License: mit
- Created: 2020-02-15T03:02:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T09:44:27.000Z (about 3 years ago)
- Last Synced: 2025-02-07T06:14:01.170Z (12 months ago)
- Topics: autofac-container, chsarp, console-application, docker, docker-compose, dotnet-core, rabbitmq, swagger-documentation, web-api-core, xunit-tests
- Language: C#
- Size: 63.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://codeclimate.com/github/ByteDecoder/publisher-docker/maintainability)
# publisher-docker
After pulling the project from github run:
```bash
$ dotnet core restore
```
Use VSCode, Visual Studio for Windows or MacOSX.
The docker containers, are linux containers, no Windows containers
## Eunning the Project
```bash
$ docker-compose up --build
```
## RabbitMQ Managment Console
With the docker compose running, open this URL in your web browser. Credentetials **guest/guest**
*http://localhost:15672*
## Swagger API documentation
browse
http://localhost:/swagger
## Running Web service
```bash
$ dotnet run --project .\publisher_api\
```
# Starting docker compose
Execute at docker-compose.yml path, the next command in the terminal
```bash
$ docker-compose up --build
$ docker-compose down
```
## Running the worker
```bash
$ dotnet run --project .\worker\
$ docker run my_worker
```
## Creating docker image from Dockerfile
```bash
$ docker build -t my_publisher_api .
$ docker build -f ./Dockerfile -t my_worker ..
```
## Docker - Start docker from an docker image
```bash
$ docker run my_publisher_api
```
## Docker - Eliminating stopped containers
```bash
$ docker system prune
```
## Docker - Display all container && images
```bash
$ docker images ls
$ docker container ls
$ docker ps -a
$ docker rmi
```