briancaffey / docker-nginx-django-vue

Project setup using docker with Django, Vue, nginx, and gunicorn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Django/VueJS project setup with Docker, nginx and gunicorn

List running containers

brian@brian-ThinkPad-X1-Carbon-6th:~$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
a8d1b6462198        sept22_web          "python3 manage.py r…"   About an hour ago   Up About an hour    0.0.0.0:8000->8000/tcp   sept22_web_1
50c3e3947989        postgres            "docker-entrypoint.s…"   2 hours ago         Up About an hour    5432/tcp                 sept22_db_1

To start docker with any changes made to Dockerfile:

docker-compose up --build

To issue a command from terminal to a running docker container:

docker exec -it a8d1b6462198 bash

Log in to postgres container and open postgres shell:

docker exec -it 50c3e3947989 bash

About

Project setup using docker with Django, Vue, nginx, and gunicorn


Languages

Language:Python 53.0%Language:Vue 23.4%Language:JavaScript 18.7%Language:HTML 3.0%Language:Dockerfile 1.9%