Skip to content

Commit

Permalink
abstract away
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed May 21, 2024
1 parent 6bc715c commit 1529e27
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions ix-dev/enterprise/minio/templates/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "macros/global/perms.sh.jinja" import perms_shell %}
{% from "macros/global/perms/container.yaml.jinja" import perms_container %}
{% set _ = ix_lib.enterprise.minio.data.validate(data = {
'multi_mode': minio.multi_mode,
'storage': storage,
Expand Down Expand Up @@ -46,28 +46,13 @@ services:
volumes:
- {{ "%s:/var/lib/postgresql/data" | format(ix_lib.base.utils.get_host_path(data=logsearch.postgres_data, ix_volumes=ixVolumes)) }}
healthcheck: {{ ix_lib.base.healthchecks.check_health(ix_lib.base.healthchecks.pg_test(pg_user, pg_database)) }}
pg_perms:
image: bash
user: root
entrypoint:
- bash
- -c
command:
- |
{{- perms_shell(mode="check", uid="999", gid="999", chmod="") | indent(8) }}

{{ perms_container("pg_perms", "check", "999", "999", "") | indent(2) }}
volumes:
- {{ "%s:/mnt/directories/data" | format(ix_lib.base.utils.get_host_path(data=logsearch.postgres_data, ix_volumes=ixVolumes)) }}
{% endif %}

minio_perms:
image: bash
user: root
entrypoint:
- bash
- -c
command:
- |
{{- perms_shell(mode="check", uid=minio.user, gid=minio.group, chmod="") | indent(8) }}
{{ perms_container("minio_perms", "check", minio.user, minio.group, "") | indent(2) }}
volumes:
{% for store in storage.data %}
- {{ "%s:/mnt/directories/data%s" | format(ix_lib.base.utils.get_host_path(data=store, ix_volumes=ixVolumes), loop.index) }}
Expand Down

0 comments on commit 1529e27

Please sign in to comment.