From fd9d194e4b123839099dfeebfd89578acad6baa0 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Mon, 8 Jul 2024 09:33:11 -0500 Subject: [PATCH] Define Mastodon image tag in variable --- docker-compose.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index dbeb477f595..d04cb166c04 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,12 +5,14 @@ # the appropriate version for your deployment. Using `nightly` will deploy the in-development version of Mastodon, which is # not considered a stable release. Visit https://github.com/mastodon/mastodon/releases for currently released versions and tags. +x-image-tag: &image-tag nightly + services: web: # build: # context: . # dockerfile: Dockerfile - image: ghcr.io/mastodon/mastodon:nightly + image: ghcr.io/mastodon/mastodon:*image-tag env_file: .env.production environment: - PORT=3000 @@ -39,7 +41,7 @@ services: # build: # context: . # dockerfile: Dockerfile - image: ghcr.io/mastodon/mastodon:nightly + image: ghcr.io/mastodon/mastodon:*image-tag env_file: .env.production restart: always command: bundle exec sidekiq @@ -59,7 +61,7 @@ services: # build: # context: ./streaming # dockerfile: Dockerfile - image: ghcr.io/mastodon/mastodon-streaming:nightly + image: ghcr.io/mastodon/mastodon-streaming:*image-tag env_file: .env.production environment: - PORT=4000