File tree 2 files changed +55
-0
lines changed
2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ # DOMAIN=example.com docker stack deploy -c ntfy.yml ntfy
2
+
3
+ version : ' 3.8'
4
+
5
+ services :
6
+ web :
7
+ image : binwiederhier/ntfy:${VERSION:-v2.4.0}
8
+ entrypoint : /bin/sh
9
+ command :
10
+ - -c
11
+ - |
12
+ echo 'auth-file: "/var/lib/ntfy/user.db"' > /etc/ntfy/server.yml
13
+ echo 'auth-default-access: "deny-all"' >> /etc/ntfy/server.yml
14
+ ntfy user add --role=admin $${ADMIN_USERNAME}
15
+ ntfy serve
16
+ environment :
17
+ - ADMIN_USERNAME=${ADMIN_USERNAME:-admin}
18
+ - NTFY_PASSWORD=${ADMIN_PASSWORD:-myp@ssw0rd}
19
+ volumes :
20
+ - ${VOLUME_PATH}config:/etc/ntfy
21
+ - ${VOLUME_PATH}data:/var/lib/ntfy
22
+ - ${VOLUME_PATH}cache:/var/cache/ntfy
23
+ deploy :
24
+ labels :
25
+ - traefik.enable=true
26
+ - traefik.http.routers.ntfy-${NUMBER:-1}.rule=Host(`${DOMAIN:-ntfy.localhost}`)
27
+ - traefik.http.routers.ntfy-${NUMBER:-1}.entrypoints=${SCHEME:-https}
28
+ - traefik.http.routers.ntfy-${NUMBER:-1}.service=ntfy-${NUMBER:-1}
29
+ - traefik.http.routers.ntfy-${NUMBER:-1}.tls.certresolver=letsencrypt
30
+ - traefik.http.services.ntfy-${NUMBER:-1}.loadbalancer.server.port=80
31
+
32
+ volumes :
33
+ config :
34
+ cache :
35
+ data :
36
+
37
+ networks :
38
+ default :
39
+ external : true
40
+ name : traefik-net
Original file line number Diff line number Diff line change 1718
1718
"url" : " https://github.com/ethibox/awesome-stacks" ,
1719
1719
"stackfile" : " stacks/focalboard.yml"
1720
1720
}
1721
+ },
1722
+ {
1723
+ "type" : 2 ,
1724
+ "title" : " Ntfy" ,
1725
+ "description" : " Alternative open-source à Pushbullet" ,
1726
+ "categories" : [" Notifications" ],
1727
+ "enabled" : false ,
1728
+ "trial" : 7 ,
1729
+ "price" : 19 ,
1730
+ "logo" : " https://i.imgur.com/xklY3FN.png" ,
1731
+ "website" : " https://ntfy.sh/" ,
1732
+ "repository" : {
1733
+ "url" : " https://github.com/ethibox/awesome-stacks" ,
1734
+ "stackfile" : " stacks/ntfy.yml"
1735
+ }
1721
1736
}
1722
1737
]
1723
1738
}
You can’t perform that action at this time.
0 commit comments