From af95c18d6328ae7128e9d53a7769d7481561ba75 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste DONNETTE Date: Thu, 17 Oct 2024 11:49:15 +0200 Subject: [PATCH] feat(docker-compose): adding lago version inside a variable inside .env --- docker-compose-old.yml => docker-compose.old.yml | 0 docker-compose.yml | 14 +++++++------- env | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) rename docker-compose-old.yml => docker-compose.old.yml (100%) diff --git a/docker-compose-old.yml b/docker-compose.old.yml similarity index 100% rename from docker-compose-old.yml rename to docker-compose.old.yml diff --git a/docker-compose.yml b/docker-compose.yml index 9c13869..9a2ed83 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -78,7 +78,7 @@ services: api: container_name: lago-api - image: getlago/api:v1.13.1 + image: getlago/api:${LAGO_VERSION} restart: unless-stopped depends_on: db: @@ -109,7 +109,7 @@ services: front: container_name: lago-front - image: getlago/front:v1.13.1 + image: getlago/front:${LAGO_VERSION} restart: unless-stopped depends_on: api: @@ -168,7 +168,7 @@ services: api-worker: container_name: lago-worker - image: getlago/api:v1.13.1 + image: getlago/api:${LAGO_VERSION} restart: unless-stopped depends_on: api: @@ -187,7 +187,7 @@ services: api-clock: container_name: lago-clock - image: getlago/api:v1.13.1 + image: getlago/api:${LAGO_VERSION} restart: unless-stopped depends_on: api: @@ -204,7 +204,7 @@ services: migrate: container_name: lago-migrate - image: getlago/api:v1.13.1 + image: getlago/api:${LAGO_VERSION} depends_on: db: condition: service_healthy @@ -218,7 +218,7 @@ services: # It is recommendend if you have a high usage of events to not impact the other Sidekiq Jobs. #api-events-worker: # container_name: lago-events-worker - # image: getlago/api:v1.13.1 + # image: getlago/api:${LAGO_VERSION} # restart: unless-stopped # depends_on: # api: @@ -261,7 +261,7 @@ services: # It is recommended if you have a high usage of invoices being created to not impact the other Sidekiq Jobs. #api-pdfs-worker: # container_name: lago-pdfs-worker - # image: getlago/api:v1.13.1 + # image: getlago/api:${LAGO_VERSION} # restart: unless-stopped # depends_on: # api: diff --git a/env b/env index 5a412cb..5caae1b 100644 --- a/env +++ b/env @@ -1,5 +1,6 @@ #See more informations here : https://doc.getlago.com/guide/self-hosted/docker +LAGO_VERSION=v1.13.1 # PostgreSQL Configuration POSTGRES_DB=lago