2017-06-25 21:02:24 +00:00
Docker installation
====================
Docker is the easiest way to get a funkwhale instance up and running.
First, ensure you have `Docker <https://docs.docker.com/engine/installation/> `_ and `docker-compose <https://github.com/docker/compose/releases> `_ installed.
Download the sample docker-compose file:
2017-07-17 20:00:32 +00:00
.. parsed-literal ::
2017-06-25 21:02:24 +00:00
mkdir -p /srv/funkwhale
cd /srv/funkwhale
2017-07-17 20:00:32 +00:00
curl -L -o docker-compose.yml "https://code.eliotberriot.com/funkwhale/funkwhale/raw/|version|/deploy/docker-compose.yml"
2017-06-25 21:02:24 +00:00
Create your env file:
2017-07-17 20:00:32 +00:00
.. parsed-literal ::
2017-06-25 21:02:24 +00:00
2017-07-17 20:00:32 +00:00
curl -L -o .env "https://code.eliotberriot.com/funkwhale/funkwhale/raw/|version|/deploy/env.prod.sample"
2017-06-25 21:02:24 +00:00
Ensure to edit it to match your needs (this file is heavily commented)
Then, you should be able to pull the required images:
.. code-block :: bash
docker-compose pull
Run the database container and the initial migrations:
.. code-block :: bash
docker-compose up -d postgres
docker-compose run --rm api python manage.py migrate
Create your admin user:
.. code-block :: bash
docker-compose run --rm api python manage.py createsuperuser
Then launch the whole thing:
.. code-block :: bash
docker-compose up -d
2017-06-28 18:30:52 +00:00
Now, you just need to configure your :ref: `reverse-proxy <reverse-proxy-setup>` . Don't worry, it's quite easy.
2017-06-25 21:33:19 +00:00
About music acquisition
-----------------------
If you want to :doc: `import music located on the server </importing-music>` , you can put it in the `` data/music `` directory and it will become readable by the importer.