To add a new Django app called auth_app
to your existing project running in a Docker Compose setup, follow these steps. Your project already includes a web
service for the Django application, a db
service for PostgreSQL, and a jupyter
service, with the code mounted via volumes. Here's how to integrate the new app seamlessly:
Since your project directory on the host machine is mounted to /usr/src/app
inside the web
container via the volume .:/usr/src/app:rw
, you can create the app on the host machine, and it will automatically appear in the container.
Run the following command in your project directory on the host machine: