From 6703e03ce6f91a67e8157b2eca0b305365096382 Mon Sep 17 00:00:00 2001 From: Alexandros Kosiaris Date: Wed, 16 Jun 2021 12:53:45 +0300 Subject: [PATCH] contrib: Add support for a $MINIFLUX_IMAGE env var in docker-compose Allowing to override the image used in docker-compose files can allow for richer and more easy local development/debugging sessions. The docker image building process is already using the latest tag anyway, making it really easy to build an image with a (set of) specific commits. Using the above built image with the provided docker-compose files isn't doable without modifications though. Add that support via environmental variables. --- contrib/docker-compose/basic.yml | 2 +- contrib/docker-compose/caddy.yml | 2 +- contrib/docker-compose/traefik.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/docker-compose/basic.yml b/contrib/docker-compose/basic.yml index ed784084..2f3ba587 100644 --- a/contrib/docker-compose/basic.yml +++ b/contrib/docker-compose/basic.yml @@ -1,7 +1,7 @@ version: '3.4' services: miniflux: - image: miniflux/miniflux:latest + image: ${MINIFLUX_IMAGE:-miniflux/miniflux:latest} container_name: miniflux restart: always ports: diff --git a/contrib/docker-compose/caddy.yml b/contrib/docker-compose/caddy.yml index 616e76cb..c3212838 100644 --- a/contrib/docker-compose/caddy.yml +++ b/contrib/docker-compose/caddy.yml @@ -13,7 +13,7 @@ services: - caddy_data:/data - caddy_config:/config miniflux: - image: miniflux/miniflux:latest + image: ${MINIFLUX_IMAGE:-miniflux/miniflux:latest} container_name: miniflux depends_on: db: diff --git a/contrib/docker-compose/traefik.yml b/contrib/docker-compose/traefik.yml index 65ce1d0c..48d56126 100644 --- a/contrib/docker-compose/traefik.yml +++ b/contrib/docker-compose/traefik.yml @@ -18,7 +18,7 @@ services: - "./letsencrypt:/letsencrypt" - "/var/run/docker.sock:/var/run/docker.sock:ro" miniflux: - image: miniflux/miniflux:latest + image: ${MINIFLUX_IMAGE:-miniflux/miniflux:latest} container_name: miniflux depends_on: db: