diff --git a/compose.yml b/compose.yml index f247460..634ea63 100644 --- a/compose.yml +++ b/compose.yml @@ -3,6 +3,10 @@ services: caddy: depends_on: - archivebox + - freshrss + - filebrowser + - uptime-kuma + - ntfy image: caddy:latest container_name: caddy restart: unless-stopped @@ -27,8 +31,6 @@ services: restart: unless-stopped command: server 0.0.0.0:8000 - ports: - - "8000:8000" environment: - TZ=Europe/Zurich @@ -44,9 +46,6 @@ services: container_name: freshrss restart: unless-stopped - ports: - - "8080:80" - environment: - TZ=Europe/Zurich - CRON_MIN=*/20 @@ -58,8 +57,6 @@ services: image: filebrowser/filebrowser:latest container_name: filebrowser restart: unless-stopped - ports: - - "8081:80" environment: - TZ=Europe/Zurich @@ -80,8 +77,6 @@ services: volumes: - /opt/server/uptime-kuma:/app/data - ports: - - "3001:3001" ntfy: image: binwiederhier/ntfy:latest container_name: ntfy @@ -89,13 +84,19 @@ services: command: - serve + - --config + - /etc/ntfy/server.yml environment: - TZ=Europe/Zurich volumes: + # Persistent database, cache, attachments - /opt/server/ntfy:/var/cache/ntfy + # Server configuration + - /home/tomasr/vps-config/ntfy-config/server.yml:/etc/ntfy/server.yml:ro + healthcheck: test: ["CMD-SHELL", "wget -q --tries=1 -O- http://localhost:80/v1/health | grep -q 'healthy'"] interval: 30s diff --git a/ntfy-config/server.yml b/ntfy-config/server.yml new file mode 100644 index 0000000..b83ec0c --- /dev/null +++ b/ntfy-config/server.yml @@ -0,0 +1,6 @@ +base-url: "https://ntfy.tomasrivera.ch" + +auth-file: "/var/cache/ntfy/user.db" +auth-default-access: "deny-all" + +attachment-cache-dir: "/var/cache/ntfy/attachments"