rocket chat manifestleri eklendi.
This commit is contained in:
parent
8030859b43
commit
9f5b97755b
3
rocket-chat/README.md
Normal file
3
rocket-chat/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
## Rocket Chat Swarm Service Konfigürasyonu
|
||||||
|
|
||||||
|
### docker stack deploy -c rocketchat.yml rocketchat
|
||||||
56
rocket-chat/rocketchat.yml
Normal file
56
rocket-chat/rocketchat.yml
Normal 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:
|
||||||
Loading…
Reference in New Issue
Block a user