Docker compose demo for a web app with Django (backend) and Express (frontend).
Main goal of this architecture was to have separate frontend and backend applications. Nginx is used here to avoid CORS and to ease development. Postgres is the database chosen for the backend.
Coordination between these applications is documented in
docker-compose.yml
. Each one of this apps has a Dockerfile.
- expressjs app with PM2
- setup nginx to handle static files (backend & frontend)