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:
@@ -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:
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user