suite mastodon

This commit is contained in:
Fanch 2025-03-14 17:04:23 +01:00
parent c613184594
commit 16683616c1

View File

@ -3,7 +3,8 @@
services: services:
db: db:
restart: always container_name: ${mastodonDBName}
restart: ${restartPolicy}
image: postgres:14-alpine image: postgres:14-alpine
shm_size: 256mb shm_size: 256mb
networks: networks:
@ -16,7 +17,8 @@ services:
- 'POSTGRES_HOST_AUTH_METHOD=trust' - 'POSTGRES_HOST_AUTH_METHOD=trust'
redis: redis:
restart: always container_name: ${mastodonRedisName}
restart: ${restartPolicy}
image: redis:7-alpine image: redis:7-alpine
networks: networks:
- mastodonNet - mastodonNet
@ -59,8 +61,9 @@ services:
web: web:
# 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
# build: . # build: .
container_name: ${mastodonServName}
image: ghcr.io/mastodon/mastodon:v4.3.6 image: ghcr.io/mastodon/mastodon:v4.3.6
restart: always restart: ${restartPolicy}
env_file: env_file:
- env-config - env-config
- ../../secret/env-mastodonServ - ../../secret/env-mastodonServ
@ -80,7 +83,7 @@ services:
- public_system:/mastodon/public/system - public_system:/mastodon/public/system
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.koz.rule=Host(`koz.kaz.bzh`)" - "traefik.http.routers.koz.rule=Host(`${mastodonHost}.${domain}`)"
- "traefik.http.services.koz.loadbalancer.server.port=3000" - "traefik.http.services.koz.loadbalancer.server.port=3000"
- "traefik.docker.network=mobilizonNet" - "traefik.docker.network=mobilizonNet"
@ -90,8 +93,9 @@ services:
# build: # build:
# dockerfile: ./streaming/Dockerfile # dockerfile: ./streaming/Dockerfile
# context: . # context: .
container_name: ${mastodonStreamingName}
image: ghcr.io/mastodon/mastodon-streaming:v4.3.6 image: ghcr.io/mastodon/mastodon-streaming:v4.3.6
restart: always restart: ${restartPolicy}
env_file: env_file:
- env-config - env-config
- ../../secret/env-mastodonServ - ../../secret/env-mastodonServ
@ -110,8 +114,9 @@ services:
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
# build: . # build: .
container_name: ${mastodonSidekiqName}
image: ghcr.io/mastodon/mastodon:v4.3.6 image: ghcr.io/mastodon/mastodon:v4.3.6
restart: always restart: ${restartPolicy}
env_file: env_file:
- env-config - env-config
- ../../secret/env-mastodonServ - ../../secret/env-mastodonServ