mirror of
https://github.com/firewalkwithm3/stacks.git
synced 2025-08-02 18:50:11 +08:00
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: notifications
|
|
services:
|
|
mollysocket:
|
|
image: ghcr.io/mollyim/mollysocket:1
|
|
container_name: mollysocket
|
|
volumes:
|
|
- /home/fern/docker/data/mollysocket/data:/data
|
|
environment:
|
|
- MOLLY_DB=/data/mollysocket.db
|
|
- MOLLY_ALLOWED_ENDPOINTS=["https://ntfy.fern.garden"]
|
|
- MOLLY_ALLOWED_UUIDS=["*"]
|
|
- MOLLY_VAPID_PRIVKEY=${MOLLY_VAPID_PRIVKEY}
|
|
- MOLLY_HOST=0.0.0.0
|
|
- MOLLY_PORT=8020
|
|
- RUST_LOG=info
|
|
networks:
|
|
- default
|
|
- proxy
|
|
command: server
|
|
working_dir: /data
|
|
restart: unless-stopped
|
|
labels:
|
|
caddy: mollysocket.fern.garden
|
|
caddy.reverse_proxy: "{{upstreams 8020}}"
|
|
ntfy:
|
|
image: binwiederhier/ntfy
|
|
container_name: ntfy
|
|
volumes:
|
|
- /home/fern/docker/data/ntfy/cache:/var/cache/ntfy
|
|
- /home/fern/docker/data/ntfy/config:/etc/ntfy
|
|
- /home/fern/docker/data/ntfy/data:/var/lib/ntfy
|
|
networks:
|
|
- default
|
|
- proxy
|
|
command: serve
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "wget -q --tries=1 http://localhost:2586/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1" ]
|
|
interval: 60s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
labels:
|
|
caddy: ntfy.fern.garden
|
|
caddy.reverse_proxy: "{{upstreams 2586}}"
|
|
|
|
networks:
|
|
default:
|
|
proxy:
|
|
external: true
|