Merge branch '713-mono-container-upgrade' into 'master'

Fix #713: Added documentation on mono-container docker upgrade

See merge request funkwhale/funkwhale!646
This commit is contained in:
Eliot Berriot 2019-03-07 10:12:14 +01:00
commit 99b8ef2d02
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1 @@
Added documentation on mono-container docker upgrade (#713)

View File

@ -36,6 +36,39 @@ Docker setup
If you've followed the setup instructions in :doc:`Docker`, upgrade path is
easy:
Mono-container installation
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Basically, you need to pull the new container image, stop and delete your existing container,
and relaunch a new one:
.. parsed-literal::
export FUNKWHALE_VERSION="|version|"
.. code-block:: shell
docker pull funkwhale/all-in-one:$FUNKWHALE_VERSION
docker stop funkwhale
docker rm funkwhale
docker run \
--name=funkwhale \
--restart=unless-stopped \
--env-file=/srv/funkwhale/.env \
-v /srv/funkwhale/data:/data \
-v /path/to/your/music/dir:/music:ro \
-e PUID=$UID \
-e PGID=$GID \
-p 5000:80 \
-d \
funkwhale/all-in-one:$FUNKWHALE_VERSION
If you are not managing the container directly by hand, but use a third party tool such as Portainer,
instructions will vary, but, as a rule of thumb, pulling the new version of the image, and relaunch
a new container with the same arguments as the previous one (except for the image version) is enough.
Multi-container installation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. parsed-literal::
cd /srv/funkwhale