Makefile: more targets for logs and shells

single-dockerfile
Ubuntu 10 months ago
parent 4084e6601f
commit 3654fdf3b9
  1. 34
      Makefile

@ -10,7 +10,7 @@ MODULES += mobilizon
MODULES += gitea
MODULES += nitter
MODULES += pixelfed
MODULES += bookwyrm
#MODULES += bookwyrm
include env.production
domain_name := $(DOMAIN_NAME)
@ -37,9 +37,9 @@ down:
nginx-shell:
$(DOCKER) exec nginx sh
nginx-logs:
$(DOCKER) logs -f --tail 1000 nginx
$(DOCKER) logs -f --tail 100000 nginx
mastodon-logs:
$(DOCKER) logs -f --tail 1000 mastodon mastodon-sidekiq
$(DOCKER) logs -f --tail 1000 mastodon mastodon-sidekiq mastodon-streaming mastodon-es mastodon-db
grafana-shell:
$(DOCKER) exec grafana bash
hedgedoc-shell:
@ -56,20 +56,36 @@ mastodon-restart:
$(DOCKER) restart mastodon
mastodon-shell:
$(DOCKER) exec mastodon bash
mastodon-streaming-shell:
$(DOCKER) exec mastodon-streaming bash
mastodon-worker-shell:
$(DOCKER) exec mastodon-worker bash
matrix-shell:
$(DOCKER) exec matrix-synapse bash
nextcloud-shell:
$(DOCKER) exec nextcloud bash
matrix-logs:
$(DOCKER) logs --tail 100 -f matrix-synapse
pixelfed-shell:
$(DOCKER) exec pixelfed-app bash
pixelfed-worker-shell:
$(DOCKER) exec pixelfed-worker bash
pixelfed-logs:
$(DOCKER) logs --tail 100 -f pixelfed-app pixelfed-worker pixelfed-db pixelfed-redis
pixelfed-worker-logs:
$(DOCKER) logs --tail 100 -f pixelfed-worker
pixelfed-rebuild:
$(DOCKER) build pixelfed-app pixelfed-worker pixelfed-redis pixelfed-db
pixelfed-restart:
$(DOCKER) restart pixelfed-app pixelfed-worker pixelfed-redis pixelfed-db
pixelfed-down:
$(DOCKER) stop pixelfed-app pixelfed-worker pixelfed-redis pixelfed-db
mastodon-sidekiq-logs:
$(DOCKER) logs --tail 100 -f mastodon-sidekiq
nextcloud-logs:
$(DOCKER) logs -f nextcloud
nginx-build: secrets/nginx
$(DOCKER) build nginx
bookwyrm-restart:
$(DOCKER) restart bookwyrm-db bookwyrm-redis_activity bookwyrm-redis_broker bookwyrm-web bookwyrm-celery_worker bookwyrm-celery_beat bookwyrm-flower
certdir = ./data/certbot/conf/live/${DOMAIN_NAME}
@ -130,6 +146,14 @@ nginx-reload:
$(DOCKER) restart nginx
nextcloud-restart:
$(DOCKER) restart nextcloud
mastodon-rebuild:
$(DOCKER) create mastodon mastodon-sidekiq
mastodon-restart:
$(DOCKER) restart mastodon mastodon-sidekiq mastodon-db mastodon-streaming mastodon-redis mastodon-es
mastodon-cache:
$(DOCKER) exec mastodon bin/tootctl media remove
matrix-restart:
$(DOCKER) restart matrix-synapse matrix-element
config:

Loading…
Cancel
Save