Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve docker instructions in docs
Krzysztof Wolski823bd8c3e493
diff --git a/docs/deploy.rst b/docs/deploy.rstindex 993b135995..ed1b6041db 100644--- a/docs/deploy.rst+++ b/docs/deploy.rst@@ -1,7 +1,7 @@Deployment==========-.. _docker:+.. _docker_deployment:Docker------diff --git a/docs/development.rst b/docs/development.rstindex 07c57d659d..c7f9842846 100644--- a/docs/development.rst+++ b/docs/development.rst@@ -4,7 +4,7 @@ DevelopmentWorking with templates-----------------------Default storefront templates are based on `Bootstrap 3 <http://getbootstrap.com/>`_.+Default storefront templates are based on `Bootstrap 4 <https://v4-alpha.getbootstrap.com/>`_.You can find the files under ``/templates/``.@@ -82,6 +82,8 @@ The storefront ships with a working `CircleCI <https://circleci.com/>`_ configurTo use it log into your CircleCI account and enable your repository.+.. _docker_dev:+Docker------@@ -90,7 +92,7 @@ Using Docker to build software allows you to run and test code without having to.. warning::The following setup is only meant for local development.- See :ref:`docker` for production use of Docker.+ See :ref:`docker_deployment` for production use of Docker.Local prerequisites@@ -100,33 +102,54 @@ You will need to install Docker and`docker-compose <https://docs.docker.com/compose/install/>`_ beforeperforming the following steps.+To build assets you will need `node <https://docs.docker.com/compose/install/>`_, `yarn <https://docs.docker.com/compose/install/>`_ and `webpack module bundler <https://webpack.github.io/>`_.++.. note::++ Our configuration exposes database, Redis and Elasticsearch ports. If you have problems running this docker file because of port conflicts, you can remove 'ports' section from docker-compose.yml+Usage*****-1. Build the containers using ``docker-compose``+1. Install JavaScript dependencies++ .. code-block:: bash++ $ yarn+++2. Prepare static assets++ .. code-block:: bash++ $ npm run build-assets+++3. Build the containers using ``docker-compose``.. code-block:: bash$ docker-compose build-2. Prepare the database+4. Prepare the database.. code-block:: bash$ docker-compose run web python manage.py migrate+ $ docker-compose run web python manage.py collectstatic --noinput$ docker-compose run web python manage.py populatedb --createsuperuserThe ``--createsuperuser`` switch creates an admin account for``[email protected]`` with the password set to ``admin``.-3. Run the containers+5. Run the containers.. code-block:: bash$ docker-compose up-By default, the application is started in debug mode, will automaticall reload code and is configured to listen on port ``8000``.+By default, the application is started in debug mode, will automatically reload code and is configured to listen on port ``8000``.diff --git a/docs/installation.rst b/docs/installation.rstindex 918eedde5f..7ec687fe51 100644--- a/docs/installation.rst+++ b/docs/installation.rst@@ -1,6 +1,11 @@Getting started===============+.. note::++ If you prefer using containers or have problems with configuring database, Redis and Elasticsearch, try :ref:`docker_dev` instructions.++Prerequisites-------------