Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amingolmahalle/sampledockerize
Sample Dockerize Asp.net Core Project.
https://github.com/amingolmahalle/sampledockerize
asp-net-core docker dokcer-compose
Last synced: 25 days ago
JSON representation
Sample Dockerize Asp.net Core Project.
- Host: GitHub
- URL: https://github.com/amingolmahalle/sampledockerize
- Owner: amingolmahalle
- Created: 2020-12-14T16:59:12.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-22T19:07:57.000Z (about 4 years ago)
- Last Synced: 2024-10-14T03:09:52.203Z (2 months ago)
- Topics: asp-net-core, docker, dokcer-compose
- Language: C#
- Homepage:
- Size: 688 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sample Dockerize Asp.net Core 3.1 Project.
First Create Network to watch 2 Container(means redis and project) on Docker:
sudo docker create network NetworkName
then run redis along with join to created network and persist data:
* before run below command.you need to create redis folder in /tmp/data/redis (path and folder name is optional.you can change their name as well as create folders path).
sudo docker run --rm --name redis -p6380:6379 -v /tmp/data/redis:/data --network NetworkName redis redis-server --appendonly yes
then Create Image by dockerFile:
sudo docker build -t projectname:1.0 .
* your project name have to be lowercase.then after create image we have to run container from created image and join to network:
sudo docker run --rm --name ContainerName -p80:80 --network NetworkName projectname:1.0
finally call below url on browser:
localhost:80