File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments