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 ###
|
###> chill-project/chill-bundles ###
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: "{{ chill_image_redis }}"
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
relatorio:
|
relatorio:
|
||||||
image: registry.gitlab.com/champs-libres/public/relatorio-tornado/app:latest
|
image: "{{ chill_image_relatorio }}"
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
restart: always
|
restart: always
|
||||||
@@ -120,7 +120,7 @@ services:
|
|||||||
# condition: service_healthy
|
# condition: service_healthy
|
||||||
|
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
image: rabbitmq:3-management-alpine
|
image: "{{ chill_image_rabbitmq }}"
|
||||||
env_file:
|
env_file:
|
||||||
- rabbitmq.env
|
- rabbitmq.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@@ -1,2 +1,7 @@
|
|||||||
---
|
---
|
||||||
# vars file for ansible_role_chill
|
# 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