ansible-role-renovate/templates/srv/docker/renovate/docker-compose.yml.j2

19 lines
657 B
Plaintext
Raw Normal View History

2022-04-27 16:55:07 +00:00
#jinja2: lstrip_blocks: "True", trim_blocks: "True"
version: '3'
services:
renovate:
environment:
RENOVATE_CONFIG_FILE: /usr/src/app/config.json
2022-05-11 12:07:20 +00:00
{% if renovate_container_environment is defined and renovate_container_environment | length > 0 %}
2022-04-27 16:55:07 +00:00
{% for key, value in renovate_container_environment.items() %}
{{ key | upper }}: {{ value | quote }}
{% endfor %}
2022-05-11 12:07:20 +00:00
{% endif %}
2022-04-27 16:55:07 +00:00
image: {{ renovate_container_image }}
user: {{ renovate_container_user | default('1000:977') }}
volumes:
- ./config.json:/usr/src/app/config.json
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp:rw