Skip to content

Commit d56c561

Browse files
committed
services: deploy etherpad
1 parent 9e8bee3 commit d56c561

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

ansible/host_vars/b-lej-de.m.voidlinux.org.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ nomad_host_volumes:
3838
- name: loki-data
3939
path: /data/loki
4040
read_only: false
41+
- name: etherpad-data
42+
path: /data/etherpad
43+
read_only: false

services/nomad/apps/etherpad.nomad

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
job "etherpad" {
2+
type = "service"
3+
datacenters = ["VOID"]
4+
namespace = "apps"
5+
6+
group "etherpad" {
7+
network {
8+
mode = "bridge"
9+
port "http" { to = 9001 }
10+
}
11+
12+
service {
13+
name = "pad"
14+
port = "http"
15+
tags = [
16+
"traefik.enable=true",
17+
"traefik.http.routers.pad.tls=true",
18+
]
19+
}
20+
21+
volume "etherpad" {
22+
type = "host"
23+
read_only = false
24+
source = "etherpad-data"
25+
}
26+
27+
task "app" {
28+
driver = "docker"
29+
30+
config {
31+
image = "etherpad/etherpad:1.8.13"
32+
}
33+
34+
env {
35+
DB_FILENAME="/data/db.json"
36+
SUPPRESS_ERRORS_IN_PAD_TEXT="false"
37+
TRUST_PROXY="true"
38+
}
39+
40+
volume_mount {
41+
volume = "etherpad"
42+
destination = "/data"
43+
read_only = false
44+
}
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)