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