From 562de4835c89ecaefe017593ee75be22d645a745 Mon Sep 17 00:00:00 2001 From: "Tomoya Matsuura(MacBookPro)" Date: Thu, 15 Feb 2024 12:56:18 +0900 Subject: [PATCH] [obsidian] vault backup: 2024-02-15 12:56:18[ --- content/Mastodon.md | 4 +- ...„ã¡ã„ã¡docker-compose.ymlを一時的ã«æ›¸ãæ›ãˆãªã„.md | 44 +++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 content/Mastodonã®ã‚¢ãƒƒãƒ—デートã§ã„ã¡ã„ã¡docker-compose.ymlを一時的ã«æ›¸ãæ›ãˆãªã„.md diff --git a/content/Mastodon.md b/content/Mastodon.md index 09fbe086..700f2520 100644 --- a/content/Mastodon.md +++ b/content/Mastodon.md @@ -43,4 +43,6 @@ cd /home/tomoya/mastodon /usr/bin/docker run -v fedifetcher-artifacts:/app/artifacts --rm --name fedifetcher -it ghcr.io/nanos/fedifetcher:latest --access-token=XXXXXXXXXXXXXXX --server=social.matsuuratomoya.com --home-timeline-length=200 --max-followings=90 --reply-interval-in-hours=6 --lock-hours=1 ``` -[[Mastodonã®ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãŒå£Šã‚ŒãŸã¨ãã«ã‚„ã£ãŸã“ã¨ï¼ˆv4.2.0)]] \ No newline at end of file +[[Mastodonã®ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãŒå£Šã‚ŒãŸã¨ãã«ã‚„ã£ãŸã“ã¨ï¼ˆv4.2.0)]] + +[[Mastodonã®ã‚¢ãƒƒãƒ—デートã§ã„ã¡ã„ã¡docker-compose.ymlを一時的ã«æ›¸ãæ›ãˆãªã„]] diff --git a/content/Mastodonã®ã‚¢ãƒƒãƒ—デートã§ã„ã¡ã„ã¡docker-compose.ymlを一時的ã«æ›¸ãæ›ãˆãªã„.md b/content/Mastodonã®ã‚¢ãƒƒãƒ—デートã§ã„ã¡ã„ã¡docker-compose.ymlを一時的ã«æ›¸ãæ›ãˆãªã„.md new file mode 100644 index 00000000..37ca306d --- /dev/null +++ b/content/Mastodonã®ã‚¢ãƒƒãƒ—デートã§ã„ã¡ã„ã¡docker-compose.ymlを一時的ã«æ›¸ãæ›ãˆãªã„.md @@ -0,0 +1,44 @@ +#tips + + +普通ã€dockerã§é‹ç”¨ã™ã‚‹ã¨ãã¯Mastodonã®ãƒªãƒã‚¸ãƒˆãƒªã‚’クローンã—ã¦ãã¦ã€`docker-compose.yml`ã®`build`をコメントアウトã™ã‚‹ã“ã¨ã§ã€ãƒªãƒã‚¸ãƒˆãƒªã‹ã‚‰ã‚³ãƒ³ãƒ†ãƒŠã‚¤ãƒ¡ãƒ¼ã‚¸ã‚’pullã™ã‚‹ã‚ˆã†ã«å¤‰ãˆã‚‹ã€‚ + +ãŸã ã“ã®å ´åˆã€ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚¢ãƒƒãƒ—デートã®éš›ã«`git stash && git fetch && git checkout ` ã™ã‚‹ã¨ã“ã‚“ãªæ„Ÿã˜ã«conflictãŒç™ºç”Ÿã™ã‚‹ã€‚(ã“ã“ã§ã¯4.2ï¼–ã‹ã‚‰4.2.5ã«ãƒ€ã‚¦ãƒ³ã‚°ãƒ¬ãƒ¼ãƒ‰ã—ã¦ã‚‹) + +```yml + web: +<<<<<<< Updated upstream + build: . + image: ghcr.io/mastodon/mastodon:v4.2.5 +======= + # build: . + image: ghcr.io/mastodon/mastodon:v4.2.6 +>>>>>>> Stashed changes + restart: always +``` + +ãã“ã§ã€`docker-compose.yml`ã¨ã¯åˆ¥ã«`docker-compose.override.yml`ã¨ã„ã†ã®ã‚’ç½®ã„ã¦ãŠãã¨ã€ç‰¹å®šã®ã‚­ãƒ¼ã‚’上書ãã—ã¦ãれる。 + +最近ã¾ã§ã€ã“ã®ä¸Šæ›¸ã機能ã§ã¯ç‰¹å®šã®ã‚¨ãƒ³ãƒˆãƒªã‚’コメントアウトã™ã‚‹ã‚ˆã†ãªæ“作ã¯ã§ããªã‹ã£ãŸãŒã€docker-compose v2.18.0以é™ã§`!reset`ã¨ã„ã†ã®ã‚’ç½®ã„ã¦ãŠãã¨ã§ãるよã†ã«ãªã£ãŸã€‚ + +[docker-compose.override.yml 㧠打ã¡æ¶ˆã—定義 ãŒã§ãるよã†ã«ãªã£ãŸã€‚](https://zenn.dev/iitenkida7/articles/91b88ca76e98c7) + +ãã“ã§ã“ã‚“ãªsudo apt-get upgrade docker-compose-plugin`docker-compose.override.yml`を作る。 + +```yml + +web: + image: ghcr.io/mastodon/mastodon:latest + build: !reset + #depends_on: #å¿…è¦ã«å¿œã˜ã¦ + # - es +streaming + image: ghcr.io/mastodon/mastodon:latest + build: !reset +sidekiq + image: ghcr.io/mastodon/mastodon:latest + build: !reset +``` + +ã“ã†ã™ã‚Œã°ã€æ›´æ–°ã™ã‚‹æ™‚ã¯`docker-compose pull&& docker-compose down && docker-compose up -d`1ã¤ã§ã‚ˆããªã‚‹ã€‚(compose自体ã«æ›´æ–°ãŒå…¥ã£ãŸã‚Šã€.env.productionã¨ã‹ã«å¤‰æ›´ãŒã‚ã£ãŸã‚Šã€`rake:db migrate`ã™ã‚‹å¿…è¦ãŒã‚ã‚‹å ´åˆã‚‚ã‚ã‚‹ã®ã§ã€åŸºæœ¬ã¯ãƒªãƒªãƒ¼ã‚¹ãƒŽãƒ¼ãƒˆã‚’読んã§ã‹ã‚‰ï¼) +