services.im.yml 1.51 KB
Newer Older
putro's avatar
putro committed
1
2
3
---

jabber:
4
5
  service_credentials:
    - name: replds-acme
putro's avatar
putro committed
6
  num_instances: 1
putro's avatar
putro committed
7
8
  scheduling_group: backend
  containers:
ale's avatar
ale committed
9
    - name: xmpp
10
      image: registry.git.autistici.org/ai3/docker/prosody:fix-xmpp-service-name
ale's avatar
ale committed
11
      ports:
putro's avatar
putro committed
12
13
        - 5222
        - 5269
14
        - 5280
ale's avatar
ale committed
15
16
        - 15222
        - 15269
putro's avatar
putro committed
17
      volumes:
putro's avatar
putro committed
18
        - /var/run/auth/socket: /var/run/auth/socket
ale's avatar
ale committed
19
        - /etc/prosody/prosody.cfg.lua: /etc/prosody/prosody.cfg.lua
ale's avatar
ale committed
20
        - /etc/credentials/public: /etc/credentials/public
ale's avatar
ale committed
21
22
23
24
25
26
27
28
29
30
31
32
33
        - /var/lib/prosody: /var/lib/prosody
    - name: filer
      image: registry.git.autistici.org/ai3/docker/prosody-filer:master
      ports:
        - 15999
      volumes:
        - /etc/prosody/prosody-filer.toml: /config.toml
        - /var/lib/prosody-filer: /data

  public_endpoints:
    - name: xmpp-uploads
      port: 15999
      scheme: http
putro's avatar
putro committed
34

putro's avatar
putro committed
35
  public_tcp_endpoints:
ale's avatar
ale committed
36
    - name: prosody
blallo's avatar
blallo committed
37
      use_proxy_protocol: true
ale's avatar
ale committed
38
      ports:
ale's avatar
ale committed
39
40
41
42
        - internal: 15222
          public: 5222
        - internal: 15269
          public: 5269
putro's avatar
putro committed
43

ale's avatar
ale committed
44
45
46
47
  monitoring_endpoints:
    - port: 5280
      scheme: http

putro's avatar
putro committed
48
  datasets:
ale's avatar
ale committed
49
    - name: data
ale's avatar
ale committed
50
51
52
53
54
      path: /var/lib/prosody
      owner: docker-jabber
      group: docker-jabber
    - name: filer
      path: /var/lib/prosody-filer
godog's avatar
godog committed
55
      owner: docker-jabber
godog's avatar
godog committed
56
      group: docker-jabber
ale's avatar
ale committed
57
58
59
    - name: prosody
      backup_command: "mysqldump-prosody --databases ai_prosody"
      restore_command: "mysql-prosody ai_prosody"
putro's avatar
putro committed
60
61
      params:
        compress: true
62
63
64

  systemd_services:
    - replds@acme.service