shantanoo-desai / komponist

A Composer for your favorite IoT/ IIoT container stacks with Ansible + Jinja2 + Docker Compose v2
GNU Affero General Public License v3.0
25 stars 2 forks source link

Remove hard-coded `user` value within Docker Compose for services #49

Closed shantanoo-desai closed 1 year ago

shantanoo-desai commented 1 year ago

Description

Set the uid for the the user parameter in each docker-compose.<service>.yml.j2 file by using an ansible variable ansible_user_uid as default value, or let the user mention this configuration in the vars/config.yml file

Affected Services

shantanoo-desai commented 1 year ago

Solution

  user: "{{  komponist.uid | default(ansible_user_uid) }}"

This requires a definition for uid in vars/config.yml