Added Docker Compose optimizations

This commit is contained in:
chiko committed 2026-10-16 00:08:57 +02:00
1 parent 6fffecd19c
commit 0f3f38f177
6 files changed
+25 -1

No files matched your search

+2
View File
@@ -5,5 +5,7 @@ data
.env .env
.env.* .env.*
!.env.example !.env.example
compose.override.yaml
compose.override.yml
coverage coverage
*.log *.log
+1
View File
@@ -1,6 +1,7 @@
PORT=3000 PORT=3000
DB_PATH=./data/events.sqlite DB_PATH=./data/events.sqlite
ADMIN_TOKEN= ADMIN_TOKEN=
PROXY_NETWORK=reverse-proxy
# Apprise API service # Apprise API service
apprise_host=apprise apprise_host=apprise
+2
View File
@@ -6,5 +6,7 @@ data/*.sqlite-wal
.env .env
.env.* .env.*
!.env.example !.env.example
compose.override.yaml
compose.override.yml
coverage/ coverage/
*.log *.log
+8
View File
@@ -41,6 +41,14 @@ Copy-Item .env.example .env
docker compose up -d --build docker compose up -d --build
``` ```
To attach the calendar app to an existing reverse-proxy Docker network, copy `compose.override.yaml.example` to `compose.override.yaml` on the server and set `PROXY_NETWORK` in `.env` to that network’s name. Compose automatically merges the local override file. The network must already exist; Apprise stays on the private Compose network while the calendar app joins both networks.
```powershell
Copy-Item compose.override.yaml.example compose.override.yaml
# Set PROXY_NETWORK in .env to your existing network's name.
docker compose up -d --build
```
The calendar service listens on port `3000`; set `HOST_PORT` in the shell or Compose `.env` file to change the host port. Apprise listens on the private Compose network at `apprise:8000` and is not published directly to the internet. SQLite data is stored in the persistent `event-data` Docker volume. Follow both services with `docker compose logs -f`, stop them with `docker compose down`, and remove the database volume only when you intend to delete the stored events and notification history (`docker compose down -v`). The calendar service listens on port `3000`; set `HOST_PORT` in the shell or Compose `.env` file to change the host port. Apprise listens on the private Compose network at `apprise:8000` and is not published directly to the internet. SQLite data is stored in the persistent `event-data` Docker volume. Follow both services with `docker compose logs -f`, stop them with `docker compose down`, and remove the database volume only when you intend to delete the stored events and notification history (`docker compose down -v`).
To build and run without Compose: To build and run without Compose:
+10
View File
@@ -0,0 +1,10 @@
services:
77thevcalntfysrv:
networks:
- default
- reverse-proxy
networks:
reverse-proxy:
external: true
name: ${PROXY_NETWORK:-reverse-proxy}
+2 -1
View File
@@ -29,7 +29,8 @@ services:
apprise_port: 8000 apprise_port: 8000
apprise_https: "false" apprise_https: "false"
depends_on: depends_on:
- apprise apprise:
condition: service_healthy
links: links:
- apprise - apprise
# ports: # ports: