recipe service overriding docs
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2022-04-21 11:39:58 +02:00
parent 965243fd12
commit d54fcdc9ca
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 8 additions and 0 deletions

View File

@ -530,3 +530,11 @@ archive, tooling will unzip files in the archive back to those paths.
In the case of restoring database tables, you can use the `pre-hook` &
`post-hook` commands to run the insertion logic.
## Can I override a service within a recipe?
You can use [this `docker-compose` trick](https://docs.docker.com/compose/extends/#understanding-multiple-compose-files) to do this.
If you have a recipe that is using a `mysql` service and you'd like to use `postgresql` instead, you can create a `compose.psql.yml`!
An example of this is the [`selfoss`](https://git.coopcloud.tech/coop-cloud/selfoss) recipe. The default is `sqlite` but there is a `postgresql` compose configuration there too.