Created
November 28, 2022 19:48
-
-
Save tyrm/f32c9e194d053378bc1edacf1af9ab59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '3.7' | |
x-logging-common: &logging-common | |
logging: | |
driver: "loki" | |
options: | |
mode: "non-blocking" | |
max-buffer-size: "64m" | |
loki-url: "http://xxx.xxx.xxx.xxx:3100/loki/api/v1/push" | |
loki-retries: "5" | |
loki-batch-size: "400" | |
services: | |
web: | |
<<: *logging-common | |
image: tyrm/mastodon:v4.0.2 | |
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000 -b '0.0.0.0'" | |
env_file: | |
- ptzo-masto/.env.production | |
- ptzo-masto/.env.web | |
healthcheck: | |
test: ["CMD-SHELL", "wget -q --spider --header 'x-forwarded-proto: https' --proxy off localhost:3000/api/v1/instance || exit 1"] | |
ports: | |
- 127.0.0.1:3000:3000 | |
restart: always | |
streaming: | |
<<: *logging-common | |
build: . | |
command: yarn start | |
env_file: | |
- ptzo-masto/.env.production | |
- ptzo-masto/.env.stream | |
healthcheck: | |
test: ["CMD-SHELL", "wget -q --spider --header 'x-forwarded-proto: https' --proxy off localhost:4000/api/v1/streaming/health || exit 1"] | |
ports: | |
- 127.0.0.1:4000:4000 | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment