This commit is contained in:
msnie
2025-02-02 19:48:34 +01:00
parent 28029cd52a
commit 01287038ef
2 changed files with 180 additions and 180 deletions
+86 -86
View File
@@ -1,91 +1,91 @@
# version: '3' version: '3'
# services: services:
# db: db:
# restart: unless-stopped restart: unless-stopped
# image: postgres:14-alpine image: postgres:14-alpine
# shm_size: 256mb shm_size: 256mb
# networks: networks:
# - default - default
# healthcheck: healthcheck:
# test: ['CMD', 'pg_isready', '-U', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'postgres']
# volumes: volumes:
# - /srv/mastodon/postgres14:/var/lib/postgresql/data - /srv/mastodon/postgres14:/var/lib/postgresql/data
# environment: environment:
# - 'POSTGRES_HOST_AUTH_METHOD=trust' - 'POSTGRES_HOST_AUTH_METHOD=trust'
# redis: redis:
# restart: unless-stopped restart: unless-stopped
# image: redis:7-alpine image: redis:7-alpine
# networks: networks:
# - default - default
# healthcheck: healthcheck:
# test: ['CMD', 'redis-cli', 'ping'] test: ['CMD', 'redis-cli', 'ping']
# volumes: volumes:
# - /srv/mastodon/redis:/data - /srv/mastodon/redis:/data
# web: web:
# image: tootsuite/mastodon image: tootsuite/mastodon
# restart: unless-stopped restart: unless-stopped
# env_file: .env.production env_file: .env.production
# command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000" command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
# networks: networks:
# - traefik - traefik
# - default - default
# healthcheck: healthcheck:
# test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:3000/health || exit 1'] test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:3000/health || exit 1']
# depends_on: depends_on:
# - db - db
# - redis - redis
# volumes: volumes:
# - /srv/mastodon/public/system:/mastodon/public/system - /srv/mastodon/public/system:/mastodon/public/system
# labels: labels:
# - "traefik.enable=true" - "traefik.enable=true"
# - "traefik.http.routers.mastodon.entrypoints=https" - "traefik.http.routers.mastodon.entrypoints=https"
# - "traefik.http.routers.mastodon.rule=(Host(`kvist.knast.cc`))" - "traefik.http.routers.mastodon.rule=(Host(`kvist.knast.cc`))"
# - "traefik.http.routers.mastodon.tls=true" - "traefik.http.routers.mastodon.tls=true"
# - "traefik.http.routers.mastodon.tls.certresolver=http" - "traefik.http.routers.mastodon.tls.certresolver=http"
# - "traefik.http.routers.mastodon.service=mastodon" - "traefik.http.routers.mastodon.service=mastodon"
# - "traefik.http.services.mastodon.loadbalancer.server.port=3000" - "traefik.http.services.mastodon.loadbalancer.server.port=3000"
# - "traefik.docker.network=traefik" - "traefik.docker.network=traefik"
# streaming: streaming:
# image: tootsuite/mastodon image: tootsuite/mastodon
# restart: unless-stopped restart: unless-stopped
# env_file: .env.production env_file: .env.production
# command: node ./streaming/index.js command: node ./streaming/index.js
# networks: networks:
# - default - default
# - traefik - traefik
# healthcheck: healthcheck:
# test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1'] test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1']
# depends_on: depends_on:
# - db - db
# - redis - redis
# labels: labels:
# - "traefik.enable=true" - "traefik.enable=true"
# - "traefik.http.routers.mastodon-api.entrypoints=https" - "traefik.http.routers.mastodon-api.entrypoints=https"
# - "traefik.http.routers.mastodon-api.rule=(Host(`kvist.knast.cc`) && PathPrefix(`/api/v1/streaming`))" - "traefik.http.routers.mastodon-api.rule=(Host(`kvist.knast.cc`) && PathPrefix(`/api/v1/streaming`))"
# - "traefik.http.routers.mastodon-api.tls=true" - "traefik.http.routers.mastodon-api.tls=true"
# - "traefik.http.routers.mastodon-api.tls.certresolver=http" - "traefik.http.routers.mastodon-api.tls.certresolver=http"
# - "traefik.http.routers.mastodon-api.service=mastodon-api" - "traefik.http.routers.mastodon-api.service=mastodon-api"
# - "traefik.http.services.mastodon-api.loadbalancer.server.port=4000" - "traefik.http.services.mastodon-api.loadbalancer.server.port=4000"
# - "traefik.docker.network=traefik" - "traefik.docker.network=traefik"
# sidekiq: sidekiq:
# image: tootsuite/mastodon image: tootsuite/mastodon
# restart: unless-stopped restart: unless-stopped
# env_file: .env.production env_file: .env.production
# command: bundle exec sidekiq command: bundle exec sidekiq
# depends_on: depends_on:
# - db - db
# - redis - redis
# networks: networks:
# - default - default
# volumes: volumes:
# - /srv/mastodon/public/system:/mastodon/public/system - /srv/mastodon/public/system:/mastodon/public/system
# healthcheck: healthcheck:
# test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"] test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
# networks: networks:
# traefik: traefik:
# external: true external: true
+94 -94
View File
@@ -1,99 +1,99 @@
# version: "3" version: "3"
# services: services:
# db: db:
# restart: unless-stopped restart: unless-stopped
# image: postgres:14-alpine image: postgres:14-alpine
# shm_size: 256mb shm_size: 256mb
# networks: networks:
# - default - default
# healthcheck: healthcheck:
# test: ["CMD", "pg_isready", "-U", "postgres"] test: ["CMD", "pg_isready", "-U", "postgres"]
# volumes: volumes:
# - ./postgres14:/var/lib/postgresql/data - ./postgres14:/var/lib/postgresql/data
# environment: environment:
# - "POSTGRES_HOST_AUTH_METHOD=trust" - "POSTGRES_HOST_AUTH_METHOD=trust"
# redis: redis:
# restart: unless-stopped restart: unless-stopped
# image: redis:7-alpine image: redis:7-alpine
# networks: networks:
# - default - default
# healthcheck: healthcheck:
# test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
# volumes: volumes:
# - /srv/mastodon/redis:/data - /srv/mastodon/redis:/data
# web: web:
# image: ghcr.io/mastodon/mastodon:v4.3.3 image: ghcr.io/mastodon/mastodon:v4.3.3
# restart: unless-stopped restart: unless-stopped
# env_file: .env.production env_file: .env.production
# command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000" command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
# networks: networks:
# - traefik - traefik
# - default - default
# healthcheck: healthcheck:
# test: test:
# [ [
# "CMD-SHELL", "CMD-SHELL",
# "wget -q --spider --proxy=off localhost:3000/health || exit 1", "wget -q --spider --proxy=off localhost:3000/health || exit 1",
# ] ]
# depends_on: depends_on:
# - db - db
# - redis - redis
# volumes: volumes:
# - /srv/mastodon/web/mastodon/public/system - /srv/mastodon/web/mastodon/public/system
# labels: labels:
# - "traefik.enable=true" - "traefik.enable=true"
# - "traefik.http.routers.mastodon.entrypoints=https" - "traefik.http.routers.mastodon.entrypoints=https"
# - "traefik.http.routers.mastodon.rule=(Host(`kvist.knast.cc`))" - "traefik.http.routers.mastodon.rule=(Host(`kvist.knast.cc`))"
# - "traefik.http.routers.mastodon.tls=true" - "traefik.http.routers.mastodon.tls=true"
# - "traefik.http.routers.mastodon.tls.certresolver=http" - "traefik.http.routers.mastodon.tls.certresolver=http"
# - "traefik.http.routers.mastodon.service=mastodon" - "traefik.http.routers.mastodon.service=mastodon"
# - "traefik.http.services.mastodon.loadbalancer.server.port=3000" - "traefik.http.services.mastodon.loadbalancer.server.port=3000"
# - "traefik.docker.network=proxy" - "traefik.docker.network=proxy"
# streaming: streaming:
# image: ghcr.io/mastodon/mastodon-streaming:v4.3.3 image: ghcr.io/mastodon/mastodon-streaming:v4.3.3
# restart: unless-stopped restart: unless-stopped
# env_file: .env.production env_file: .env.production
# command: node ./streaming/index.js command: node ./streaming/index.js
# networks: networks:
# - default - default
# - traefik - traefik
# healthcheck: healthcheck:
# test: test:
# [ [
# "CMD-SHELL", "CMD-SHELL",
# "wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1", "wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1",
# ] ]
# depends_on: depends_on:
# - db - db
# - redis - redis
# labels: labels:
# - "traefik.enable=true" - "traefik.enable=true"
# - "traefik.http.routers.mastodon-api.entrypoints=https" - "traefik.http.routers.mastodon-api.entrypoints=https"
# - "traefik.http.routers.mastodon-api.rule=(Host(`kvist.knast.cc`) && PathPrefix(`/api/v1/streaming`))" - "traefik.http.routers.mastodon-api.rule=(Host(`kvist.knast.cc`) && PathPrefix(`/api/v1/streaming`))"
# - "traefik.http.routers.mastodon-api.tls=true" - "traefik.http.routers.mastodon-api.tls=true"
# - "traefik.http.routers.mastodon-api.tls.certresolver=http" - "traefik.http.routers.mastodon-api.tls.certresolver=http"
# - "traefik.http.routers.mastodon-api.service=mastodon-api" - "traefik.http.routers.mastodon-api.service=mastodon-api"
# - "traefik.http.services.mastodon-api.loadbalancer.server.port=4000" - "traefik.http.services.mastodon-api.loadbalancer.server.port=4000"
# - "traefik.docker.network=proxy" - "traefik.docker.network=proxy"
# sidekiq: sidekiq:
# image: tootsuite/mastodon image: tootsuite/mastodon
# restart: unless-stopped restart: unless-stopped
# env_file: .env.production env_file: .env.production
# command: bundle exec sidekiq command: bundle exec sidekiq
# depends_on: depends_on:
# - db - db
# - redis - redis
# networks: networks:
# - default - default
# volumes: volumes:
# - /srv/mastodon/sidekiq:/mastodon/public/system - /srv/mastodon/sidekiq:/mastodon/public/system
# healthcheck: healthcheck:
# test: ["CMD-SHELL", "ps aux | grep '[s]idekiq\ 6' || false"] test: ["CMD-SHELL", "ps aux | grep '[s]idekiq\ 6' || false"]
# networks: networks:
# traefik: traefik:
# external: true external: true