1
0
Fork 0
satnogs-db/docs/installation-docker.rst

40 lines
929 B
ReStructuredText

Docker Installation
===================
#. **Requirements**
You will need `docker <https://docs.docker.com/installation/#installation>`_ and `docker-compose <https://docs.docker.com/compose/install/>`_.
#. **Build the containers**
Clone source code from the `repository <https://gitlab.com/librespacefoundation/satnogs/satnogs-db>`_::
$ git clone https://gitlab.com/librespacefoundation/satnogs/satnogs-db.git
$ cd satnogs-db
Set your environmental variables::
$ cp env-dist .env
Start database containers::
$ docker-compose up -d db
Build satnogs-db container::
$ docker-compose build web
Run the initialize script to populate the database with scheme and demo data::
$ docker-compose run web python manage.py initialize
#. **Run it!**
Run satnogs-db::
$ docker-compose up
Your satnogs-db development instance is available in localhost:8000. Go hack!