rocket chat manifestleri eklendi.

This commit is contained in:
emreKirman 2025-08-26 01:55:03 -05:00
parent 8030859b43
commit 9f5b97755b
2 changed files with 59 additions and 0 deletions

3
rocket-chat/README.md Normal file
View File

@ -0,0 +1,3 @@
## Rocket Chat Swarm Service Konfigürasyonu
### docker stack deploy -c rocketchat.yml rocketchat

View File

@ -0,0 +1,56 @@
version: "3.8"
services:
### Rocket.Chat
rocketchat:
image: registry.rocket.chat/rocketchat/rocket.chat:latest
environment:
- PORT=3000
- ROOT_URL=https://chat.emrekirman.xyz # <- kendi domainini yaz
- MONGO_URL=mongodb://admin:emre98836@mongodb:27017/rocketchat?authSource=admin
- MONGO_OPLOG_URL=mongodb://admin:emre98836@mongodb:27017/rocketchatlog?authSource=admin
- REDIS_URL=redis://:98836@redis:6379
# İsteğe bağlı: Türkçe varsayılan dil
- OVERWRITE_SETTING_Language=tr
volumes:
- uploads:/app/uploads
networks:
- mongodb_backend-net
- traefik-public
- redis_redis_net
deploy:
replicas: 2 # Traefik sticky cookie ile çoklayabiliyoruz
update_config:
order: start-first
parallelism: 1
delay: 5s
restart_policy:
condition: on-failure
placement:
constraints:
- node.labels.platform == prod
labels:
- traefik.enable=true
# Router
- traefik.http.routers.rocketchat.rule=Host(`chat.emrekirman.xyz`)
- traefik.http.routers.rocketchat.entrypoints=websecure
- traefik.http.routers.rocketchat.tls.certresolver=myresolver
- traefik.http.routers.rocketchat.service=rocketchat
# Service (websocket uyumlu, sticky önerilir)
- traefik.http.services.rocketchat.loadbalancer.server.port=3000
- traefik.http.services.rocketchat.loadbalancer.sticky.cookie=true
- traefik.http.services.rocketchat.loadbalancer.sticky.cookie.name=rc_sticky
# (İsteğe bağlı) www → çıplak alan ya da tersi için ek router ekleyebilirsin
networks:
traefik-public:
external: true
mongodb_backend-net:
external: true
redis_redis_net:
external: true
volumes:
mongo_data:
redis_data:
uploads: