This commit is contained in:
msnie
2025-02-02 00:53:39 +01:00
parent c0b29f5f9c
commit 95d445cb75
+16 -4
View File
@@ -71,8 +71,8 @@ services:
healthcheck: healthcheck:
# prettier-ignore # prettier-ignore
test: ['CMD-SHELL',"curl -s --noproxy localhost localhost:3000/health | grep -q 'OK' || exit 1"] test: ['CMD-SHELL',"curl -s --noproxy localhost localhost:3000/health | grep -q 'OK' || exit 1"]
ports: # ports:
- '127.0.0.1:3000:3000' # - '127.0.0.1:3000:3000'
depends_on: depends_on:
- db - db
- redis - redis
@@ -81,6 +81,12 @@ services:
# - ./public/system:/mastodon/public/system # - ./public/system:/mastodon/public/system
# /mastodon/public/system # /mastodon/public/system
- /srv/mastodon/web:/mastodon/public/system - /srv/mastodon/web:/mastodon/public/system
labels:
- traefik.enable=true
- traefik.http.routers.mastodonweb.rule=Host(`kvist.knast.cc`)
- traefik.http.routers.mastodonweb.entrypoints=websecure
- traefik.http.routers.mastodonweb.tls.certresolver=letsencr
- traefik.http.services.mastodonweb.loadbalancer.server.port=3000
streaming: streaming:
# You can uncomment the following lines if you want to not use the prebuilt image, for example if you have local code changes # You can uncomment the following lines if you want to not use the prebuilt image, for example if you have local code changes
@@ -97,11 +103,17 @@ services:
healthcheck: healthcheck:
# prettier-ignore # prettier-ignore
test: ['CMD-SHELL', "curl -s --noproxy localhost localhost:4000/api/v1/streaming/health | grep -q 'OK' || exit 1"] test: ['CMD-SHELL', "curl -s --noproxy localhost localhost:4000/api/v1/streaming/health | grep -q 'OK' || exit 1"]
ports: # ports:
- '127.0.0.1:4000:4000' # - '127.0.0.1:4000:4000'
depends_on: depends_on:
- db - db
- redis - redis
labels:
- traefik.enable=true
- traefik.http.routers.mastodonstreaming.rule=(Host(`kvist.knast.cc`) && PathPrefix(`/api/v1/streaming`))
- traefik.http.routers.mastodonstreaming.entrypoints=websecure
- traefik.http.routers.mastodonstreaming.tls.certresolver=letsencr
- traefik.http.services.mastodonstreaming.loadbalancer.server.port=4000
sidekiq: sidekiq:
# You can uncomment the following line if you want to not use the prebuilt image, for example if you have local code changes # You can uncomment the following line if you want to not use the prebuilt image, for example if you have local code changes