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.
This commit is contained in:
Alexandros Kosiaris 2021-06-16 12:53:45 +03:00 committed by fguillot
parent 56c3f1193f
commit 6703e03ce6
3 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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:

View file

@ -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: