Browse Source

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.
Alexandros Kosiaris 4 years ago
parent
commit
6703e03ce6

+ 1 - 1
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:

+ 1 - 1
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:

+ 1 - 1
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: