1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Define Mastodon image tag in variable

This commit is contained in:
Michael Stanclift 2024-07-08 09:33:11 -05:00
parent 0ff1162569
commit fd9d194e4b

View file

@ -5,12 +5,14 @@
# the appropriate version for your deployment. Using `nightly` will deploy the in-development version of Mastodon, which is # 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. # 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: services:
web: web:
# build: # build:
# context: . # context: .
# dockerfile: Dockerfile # dockerfile: Dockerfile
image: ghcr.io/mastodon/mastodon:nightly image: ghcr.io/mastodon/mastodon:*image-tag
env_file: .env.production env_file: .env.production
environment: environment:
- PORT=3000 - PORT=3000
@ -39,7 +41,7 @@ services:
# build: # build:
# context: . # context: .
# dockerfile: Dockerfile # dockerfile: Dockerfile
image: ghcr.io/mastodon/mastodon:nightly image: ghcr.io/mastodon/mastodon:*image-tag
env_file: .env.production env_file: .env.production
restart: always restart: always
command: bundle exec sidekiq command: bundle exec sidekiq
@ -59,7 +61,7 @@ services:
# build: # build:
# context: ./streaming # context: ./streaming
# dockerfile: Dockerfile # dockerfile: Dockerfile
image: ghcr.io/mastodon/mastodon-streaming:nightly image: ghcr.io/mastodon/mastodon-streaming:*image-tag
env_file: .env.production env_file: .env.production
environment: environment:
- PORT=4000 - PORT=4000