7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-01 05:40:48 +00:00

docs: using docker-compose.override.yml

This feature was previously undocumented.

See: https://discuss.overhang.io/t/override-and-docker-compose/1857
This commit is contained in:
Régis Behmo 2021-09-06 14:35:29 +02:00 committed by Régis Behmo
parent f5650d8a29
commit 1411e5a0ff

View File

@ -271,3 +271,12 @@ To dump all data from the MySQL and Mongodb databases used on the platform, run
tutor local exec mongodb mongodump --out=/data/db/dump.mongodb
The ``dump.sql`` and ``dump.mongodb`` files will be located in ``$(tutor config printroot)/data/mysql`` and ``$(tutor config printroot)/data/mongodb``.
Customizing the deployed services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You might want to customize the docker-compose services listed in ``$(tutor config printroot)/env/local/docker-compose.yml``. To do so, you should create a ``docker-compose.override.yml`` file in that same folder::
vim $(tutor config printroot)/env/local/docker-compose.override.yml
The values in this file will override the values from ``docker-compose.yml`` and ``docker-compose.prod.yml``, as explained in the `docker-compose documentation <https://docs.docker.com/compose/extends/#adding-and-overriding-configuration>`__.