Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zablon-oigo/django-on-docker
Dockerizing Django with Postgres, Gunicorn, and Nginx
https://github.com/zablon-oigo/django-on-docker
django docker docker-compose dockerfile gunicorn nginx nginx-docker postgresql shell-script
Last synced: about 2 months ago
JSON representation
Dockerizing Django with Postgres, Gunicorn, and Nginx
- Host: GitHub
- URL: https://github.com/zablon-oigo/django-on-docker
- Owner: zablon-oigo
- Created: 2024-02-05T06:43:45.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-09T09:35:01.000Z (7 months ago)
- Last Synced: 2024-06-10T04:27:32.316Z (7 months ago)
- Topics: django, docker, docker-compose, dockerfile, gunicorn, nginx, nginx-docker, postgresql, shell-script
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django-on-docker
# What is Docker
Docker is a platform tha allows you to build, ship and run any app anywhere.
Docker is an open source project that is considered a standard way of solving one of the costliest aspect of Software Development - Deployment.# Docker terminologies
## docker Client
this the command used to control most of docker workflow and talk to remote Docker server## Docker Server
used to start docker server process that builds and launches container via client## Atomic Host
is a small finely tuned Operating system Image i.e fedora that support container hosting and atomic os upgrades.## dockerfile
is a file that define the steps to create and run a custom Image .
dockerfiles are usually read from top-to-bottom when the image is created.
```
FROM :
WORKDIR
COPY .
```## docker-compose.yml
is a tool we can use to manage one or multiple containers.## Images
Docker Image consist of files and metadata, the metadat has information on port mapping and volumes## Container
Containers are created from Images, they inherit their metadata to determine their startup configuration.
Changes to files in a container are stored within container in a copy-on-write mechanism.### Ways to create a Docker Image
1. **docker command** fire up the container with **docker run** and input command to create your image on one command line .2. **dockerfile** building from known image and specify the build with a limited set of simple commands.
### key docker command
-**docker build** Build docker image
-**docker run** run docker image as container
-**docker commit** commit docker container as image
-**docker tag** tag a docker image