forked from sanwebinfo/gtfy-listener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (32 loc) · 929 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '3.8'
services:
gtfy-listener:
build:
context: /opt/gtfy-listener
dockerfile: Dockerfile
image: gtfy-listener
container_name: gtfy-listener
restart: unless-stopped
environment:
- GOTIFY_HOST=${GOTIFY_HOST:-gotify.example.com}
- GOTIFY_TOKEN=${GOTIFY_TOKEN:-mytoken}
- NTFY_HOST=${NTFY_HOST:-https://ntfy.example.com/mytopic}
# Optional token support
#- NTFY_TOKEN=${NTFY_TOKEN}
depends_on:
- gotify-server
labels:
com.centurylinklabs.watchtower.enable: "false"
gotify-server:
image: gotify/server
container_name: gotify-server
restart: unless-stopped
environment:
- TZ=Europe/Berlin
- GOTIFY_SERVER_TRUSTEDPROXIES=[127.0.0.1]
- GOTIFY_REGISTRATION=false
- GOTIFY_SERVER_CORS_ALLOWHEADERS=[X-Gotify-Key, Authorization]
volumes:
- ./gotify/data:/app/data
ports:
- "8080:80"