add env file for mastodon

This commit is contained in:
Mael G. 2024-10-20 21:47:06 +02:00
parent a64b7b6294
commit 71cf1c9b18

View file

@ -15,7 +15,10 @@ services:
web:
image: ghcr.io/mastodon/mastodon:v4.3.0
restart: always
env_file: .env.production
env_file:
- path: .env.production
- path: .env
required: false
command: bundle exec puma -C config/puma.rb
healthcheck:
# prettier-ignore
@ -43,7 +46,10 @@ services:
streaming:
image: ghcr.io/mastodon/mastodon-streaming:v4.3.0
restart: always
env_file: .env.production
env_file:
- path: .env.production
- path: .env
required: false
command: node ./streaming/index.js
healthcheck:
# prettier-ignore
@ -66,7 +72,10 @@ services:
sidekiq:
image: ghcr.io/mastodon/mastodon:v4.3.0
restart: always
env_file: .env.production
env_file:
- path: .env.production
- path: .env
required: false
command: bundle exec sidekiq
healthcheck:
test: ["CMD-SHELL", "ps aux | grep '[s]idekiq\ 6' || false"]