From a3e51d47cfecd52a43f1d25489c997dc027a2b8e Mon Sep 17 00:00:00 2001 From: Davide Arcuri Date: Thu, 22 Feb 2024 23:29:13 +0100 Subject: [PATCH] multiple version --- .env.sample | 1 + docker-compose.yml | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .env.sample diff --git a/.env.sample b/.env.sample new file mode 100644 index 00000000..0fd25230 --- /dev/null +++ b/.env.sample @@ -0,0 +1 @@ +VERSION=latest diff --git a/docker-compose.yml b/docker-compose.yml index 4a931347..8bd1ceb7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,7 +17,7 @@ services: build: context: . dockerfile: ./compose/local/nginx/Dockerfile - image: ghcr.io/ldo-cert/orochi_nginx:latest + image: ghcr.io/ldo-cert/orochi_nginx:${VERSION:-latest} container_name: orochi_nginx depends_on: - django_asgi @@ -36,7 +36,7 @@ services: - http_proxy - https_proxy - local_upload_path - image: ghcr.io/ldo-cert/orochi_django:latest + image: ghcr.io/ldo-cert/orochi_django:${VERSION:-latest} container_name: orochi_django_wsgi hostname: django restart: always @@ -67,7 +67,7 @@ services: - http_proxy - https_proxy - local_upload_path - image: ghcr.io/ldo-cert/orochi_django:latest + image: ghcr.io/ldo-cert/orochi_django:${VERSION:-latest} container_name: orochi_django_asgi hostname: django restart: always @@ -156,7 +156,7 @@ services: MONITORING_ENABLED: "false" scheduler: - image: ghcr.io/ldo-cert/orochi_worker:latest + image: ghcr.io/ldo-cert/orochi_worker:${VERSION:-latest} build: context: . dockerfile: ./compose/local/dask/Dockerfile @@ -188,7 +188,7 @@ services: - cache_path:/root/.cache/volatility3 worker: - image: ghcr.io/ldo-cert/orochi_worker:latest + image: ghcr.io/ldo-cert/orochi_worker:${VERSION:-latest} deploy: replicas: 2 build: