services.noblogs.yml 3.14 KB
Newer Older
1
2
3
4
5
6
7
---

noblogs:
  scheduling_group: backend
  master_election: true
  containers:
    - name: http
8
      image: registry.git.autistici.org/noblogs/noblogs-composer:gancio
9
10
11
      port: 8082
      volumes:
        - /etc/noblogs: /etc/noblogs
12
        - /etc/noblogs/robots.txt: /opt/noblogs/www/robots.txt
13
        - /opt/noblogs/data: /opt/noblogs/www/wp-content/blogs.dir
ale's avatar
ale committed
14
        - /opt/noblogs/cache: /opt/noblogs/www/wp-content/cache
15
        - /opt/noblogs/uploads: /opt/noblogs/www/wp-content/uploads
16
        - /opt/noblogs/translations: /opt/noblogs/www/wp-content/languages/bogo
17
        - /opt/noblogs/tmp/sessions: /var/lib/php/sessions
ale's avatar
ale committed
18
        - /opt/noblogs/tmp/uploads: /tmp
19
        - tmpfs: /var/log/apache2
20
21
      env:
        APACHE_PORT: 8082
22
        PHP_FPM_MAX_CHILDREN: 40
ale's avatar
ale committed
23
24
25
26
27
28
    - name: memcache
      image: registry.git.autistici.org/ai3/docker/memcached:master
      port: 7108
      env:
        MEM: 256
        PORT: 7108
29
30
31
32
33
    - name: poster
      image: registry.git.autistici.org/noblogs/noblogs-poster:master
      port: 7107
      env:
        ADDR: :7107
34
35
36
37
  public_endpoints:
    - name: noblogs
      port: 8082
      scheme: http
ale's avatar
ale committed
38
      autoconfig: false
ale's avatar
ale committed
39
      skip_acme: true
ale's avatar
ale committed
40
      skip_dns: true
ale's avatar
ale committed
41
42
43
      domains:
        - noblogs.org
        - "*.noblogs.org"
ale's avatar
ale committed
44
45
46
47
48
49
50
    - name: noblogs-cdn
      port: 8082
      scheme: http
      autoconfig: false
      skip_acme: true
      skip_dns: true
      domains:
ale's avatar
ale committed
51
        - noblogs.ai-cdn.net
52
53
54
55
56
57
58
59
    - name: noblogs-random-poster
      port: 7107
      scheme: http
      autoconfig: false
      skip_acme: true
      skip_dns: true
      domains:
        - random-poster.noblogs.org
60
61
  monitoring_endpoints:
    - job_name: noblogs
62
      port: 8182
63
      scheme: http
ale's avatar
ale committed
64
    - job_name: noblogs-php
ale's avatar
ale committed
65
      port: 8282
ale's avatar
ale committed
66
      scheme: http
67
68
69
    - job_name: mariadb-noblogs
      port: 9307
      scheme: http
ale's avatar
ale committed
70
71
  ports:
    - 3307
72
    - 7107
ale's avatar
ale committed
73
74
75
76
77
78
  volumes:
    - name: data
      path: /opt/noblogs
      size: 300g
      owner: docker-noblogs
      group: docker-noblogs
79
      mode: "0700"
ale's avatar
ale committed
80

ale's avatar
ale committed
81
82
83
84
nospam:
  scheduling_group: backend
  num_instances: 1
  containers:
ale's avatar
ale committed
85
    - name: http
ale's avatar
ale committed
86
      image: registry.git.autistici.org/ai/nospam2:master
ale's avatar
ale committed
87
88
89
90
91
      volumes:
        - /etc/nospam: /etc/nospam
        - /var/lib/nospam: /var/lib/nospam
      ports:
        - 9001
ale's avatar
ale committed
92
      args: "server --config /etc/nospam/config.json"
ale's avatar
ale committed
93
  datasets:
ale's avatar
ale committed
94
95
    - name: data
      path: /var/lib/nospam
ale's avatar
ale committed
96
97
      owner: docker-nospam
      group: docker-nospam
ale's avatar
ale committed
98
      mode: "0700"
ale's avatar
ale committed
99
100
101
102
103
104
105
  monitoring_endpoints:
    - job_name: nospam
      port: 9001
      scheme: http
  ports:
    - 9001

ale's avatar
ale committed
106
107
108
109
110
111
gancio:
  scheduling_group: backend
  num_instances: 1
  containers:
    - name: gancio
      image: registry.git.autistici.org/ai3/docker/gancio:master
112
      args: "--config=/etc/gancio.json"
ale's avatar
ale committed
113
114
      port: 7109
      volumes:
115
116
        - /etc/gancio.json: /etc/gancio.json
        - /var/lib/gancio: /data
ale's avatar
ale committed
117
118
119
      env:
        NODE_ENV: production
        GANCIO_DATA: /data
120
121
        GANCIO_HOST: 0.0.0.0
        GANCIO_PORT: 7109
ale's avatar
ale committed
122
123
124
125
  public_endpoints:
    - name: gancio
      port: 7109
      scheme: http
ale's avatar
ale committed
126
  datasets:
ale's avatar
ale committed
127
128
129
130
    - name: data
      path: /var/lib/gancio
      owner: docker-gancio
      group: docker-gancio
ale's avatar
ale committed
131
      mode: "0700"