Update index.rst

Adding some installation description and steps for the Docker option.
This commit is contained in:
andresovichh 2023-06-11 12:41:33 -03:00 committed by GitHub
parent 026fd0aeb0
commit f4aa2dff6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,6 +90,30 @@ Ubuntu 64bit - 16.04
Visit our Django web development page [Here](https://micropyramid.com/django-ecommerce-development/)
Docker
*********************
To install using Docker, you need have Docker installed in your system.
1. Clone the repository into your system.
2. Then run the following code to build and run the container:
| $ docker build -t djcrm:1 -f docker/Dockerfile .
| $ docker-compose -f docker/docker-compose.yml up
The first line will build your container and the second one will run it.
There you will be able to see what is going on inside the container.
If you head to localhost:8000/admin you will get to the admin panel of Wagtail.
3. In order to be able to login to the admin panel you have to create an admin user. If you are using Vscode, go to the bottom left corner and click on it, there go to "Attach to running container" and you will see two options, click on the one called "crm-app". Once inside the container, then cd into the app directory and run:
| $ python3 manage.py createsuperuser
After this you will be able to log into the admin panel with the user you just created.
We welcome your feedback and support, raise github ticket if you want to report a bug or need new feature.
Need additional support? `Contact us here`_