Parameterize image names in compose.yaml

Replaced hardcoded image names in the `compose.yaml` file with variables defined in `vars/main.yml`. This makes the configuration more flexible and easier to customize.
This commit is contained in:
2025-08-28 15:16:32 +02:00
parent 9f84c8c10e
commit 3ba13cf00d
2 changed files with 8 additions and 3 deletions

View File

@@ -83,13 +83,13 @@ services:
###> chill-project/chill-bundles ###
redis:
image: redis
image: "{{ chill_image_redis }}"
networks:
- default
restart: always
relatorio:
image: registry.gitlab.com/champs-libres/public/relatorio-tornado/app:latest
image: "{{ chill_image_relatorio }}"
networks:
- default
restart: always
@@ -120,7 +120,7 @@ services:
# condition: service_healthy
rabbitmq:
image: rabbitmq:3-management-alpine
image: "{{ chill_image_rabbitmq }}"
env_file:
- rabbitmq.env
healthcheck:

View File

@@ -1,2 +1,7 @@
---
# vars file for ansible_role_chill
chill_image_redis: "redis"
chill_image_rabbitmq: "rabbitmq:3-management-alpine"
chill_image_relatorio: "registry.gitlab.com/champs-libres/public/relatorio-tornado/app:latest"
traefik_image_traefik: "traefik:v3.2"