Skip to content

whtulloh/py-dockerizing-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. Multi ENVIRONTMENT
2. Only for Django 4.0 with WSSGI and Apache
3. DB postgresql with phppgadmin
4. Include Remote debug
5. No project inculded, only docker file and it dependencies

# /etc/init.d/postgresql restart
# /etc/init.d/apache2 start
# ./opt/project/sync_projectdb.sh

# docker build -t project .
# docker run -d -p 80:80 project
#

========
Docker
========
Reference https://docs.docker.com/reference/

----- PRODUCTION ENVIRONTMENT -----
1. Build image & Run docker Container
docker-compose up --build

2. Run Container from Image
docker-compose up --no-build

----- DEVELOPMENT ENVIRONTMENT -----
1. Build Image docker (Container still not run)
docker-compose -f docker-compose.dev.yml up --build

2. Run Container from Image
docker-compose -f docker-compose.dev.yml up --no-build

3. Use Visual studio to remote debug
Goto "RUN" menu >> "START DEBUGGING" | or press "F5"

About

Sample Dockerizing Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors