Manifests/rocket-chat/rocketchat.yml
2025-08-26 01:55:03 -05:00

57 lines
1.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: