This commit is contained in:
msnie
2025-02-03 19:19:52 +01:00
parent dd4f31e6a4
commit 77dfcfcc17
+6 -2
View File
@@ -44,13 +44,15 @@ services:
- redis - redis
volumes: volumes:
- /srv/mastodon/web:/mastodon/public/system - /srv/mastodon/web:/mastodon/public/system
ports:
- 3443:3000
labels: labels:
- traefik.enable=true - traefik.enable=true
- "traefik.http.routers.mastodon.entrypoints=websecure" - "traefik.http.routers.mastodon.entrypoints=websecure"
- "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=letsencr" - "traefik.http.routers.mastodon.tls.certresolver=letsencr"
- "traefik.http.services.mastodon.loadbalancer.server.port=3000" - "traefik.http.services.mastodon.loadbalancer.server.port=3443"
streaming: streaming:
image: ghcr.io/mastodon/mastodon-streaming:v4.3.3 image: ghcr.io/mastodon/mastodon-streaming:v4.3.3
@@ -69,13 +71,15 @@ services:
depends_on: depends_on:
- db - db
- redis - redis
ports:
- 4334:4000
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.mastodon_streaming.rule=(Host(`kvist.knast.cc`) && PathPrefix(`/api/v1/streaming`)) - traefik.http.routers.mastodon_streaming.rule=(Host(`kvist.knast.cc`) && PathPrefix(`/api/v1/streaming`))
- traefik.http.routers.mastodon_streaming.entrypoints=websecure - traefik.http.routers.mastodon_streaming.entrypoints=websecure
- traefik.http.routers.mastodon_streaming.tls=true - traefik.http.routers.mastodon_streaming.tls=true
- traefik.http.routers.mastodon_streaming.tls.certresolver=letsencr - traefik.http.routers.mastodon_streaming.tls.certresolver=letsencr
- traefik.http.services.mastodon_streaming.loadbalancer.server.port=4000 - traefik.http.services.mastodon_streaming.loadbalancer.server.port=4334
sidekiq: sidekiq:
image: ghcr.io/mastodon/mastodon:v4.3.3 image: ghcr.io/mastodon/mastodon:v4.3.3