fix-docker (#1)

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2025-10-21 00:52:32 +00:00
parent 966353de3e
commit 999bdf7222
9 changed files with 128 additions and 55 deletions

36
docker-compose.yml Normal file
View File

@@ -0,0 +1,36 @@
services:
app:
build: .
volumes:
- ./data/db:/opt/app/data/db
env_file:
- path: ./.env
required: true
depends_on:
apprise:
condition: service_healthy
links:
- apprise
apprise:
image: caronc/apprise:latest
hostname: apprise
environment:
- APPRISE_WORKER_COUNT=1
- APPRISE_STATEFUL_MODE=simple
# - PUID=$(id -u)
# - PGID=$(id -g)
volumes:
- ./data/apprise/config:/config
- ./data/apprise/plugin:/plugin
- ./data/apprise/attach:/attach
ports:
- 8000:8000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/status"]
interval: 30s
timeout: 10s
retries: 5
# networks:
# default:
# external: true
# name: npm