Skip to content

Commit

Permalink
Feat(docker-compose.yaml): Docker Compose Template for ParsonLabs Music
Browse files Browse the repository at this point in the history
  • Loading branch information
WillKirkmanM committed Nov 29, 2024
1 parent c4c2cdb commit ad257da
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ix-dev/community/parsonlabs-music/templates/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{% set tpl = ix_lib.base.render.Render(values) %}

{% set c1 = tpl.add_container("music-server", "ghcr.io/willkirkmanm/music") %}
{% do c1.set_user(values.consts.run_as_user, values.consts.run_as_group) %}

{% do c1.environment.add_env("NODE_ENV", "production") %}
{% do c1.ports.add_port(1993, 1993) %}

{% do c1.add_storage("/ParsonLabsMusic", values.storage.config) %}
{% do c1.add_storage("/music", values.storage.music) %}

{% for store in values.storage.additional_storage %}
{% do c1.add_storage(store.mount_path, store) %}
{% endfor %}

{% do tpl.portals.add_portal({"port": 1993}) %}

{{ tpl.render() | tojson }}

0 comments on commit ad257da

Please sign in to comment.