2024-03-16 08:40:24 +00:00
|
|
|
services:
|
2024-04-09 12:22:05 +00:00
|
|
|
website:
|
2026-03-03 15:40:47 +00:00
|
|
|
image: ghcr.io/bewcloud/bewcloud:v4.1.2
|
Remove fresh
This implements a huge change, where Fresh is removed as a framework and serving files, allowing more control over importing, bundling, and serving files and components.
The biggest challenge was to continue making sure that there weren't too many places to look into for import versions, and `PasswordlessPasskeyLogin.tsx` became a prototype in migrating a component to fully SSR, no need for frontend parsing (via Babel) or bundling (via a custom-script, downloading frontend dependencies from esm.sh). Still, there are too many components to migrate like that, and it's all working, so I likely won't even attempt it unless there's some bug, new feature, or security vulnerability to address that warrants a rewrite of those.
This also updates all dependencies (except `@libs/xml` because that still causes some breaking in DAV endpoints), including Deno!
All other advantages can be seen in the related issues, and the breaking change this (v4.0.0) introduces is related simply to `config.email.tlsMode` (which had a deprecation warning throughout v3), and because, while I tested many things exhaustively, it's not impossible something broke that I didn't see.
Closes #141
Closes #132
2026-02-20 10:54:31 +00:00
|
|
|
# NOTE: uncomment below (and comment above) only if you pulled the repo and want to build the image locally
|
|
|
|
|
# build:
|
|
|
|
|
# context: .
|
|
|
|
|
# dockerfile: Dockerfile
|
2024-04-09 12:22:05 +00:00
|
|
|
restart: always
|
|
|
|
|
ports:
|
|
|
|
|
- 127.0.0.1:8000:8000
|
|
|
|
|
mem_limit: '256m'
|
2024-04-09 19:03:21 +00:00
|
|
|
env_file:
|
|
|
|
|
- path: .env
|
|
|
|
|
required: true
|
2024-04-09 12:22:05 +00:00
|
|
|
volumes:
|
|
|
|
|
- ./data-files:/app/data-files
|
2025-06-20 11:04:16 +00:00
|
|
|
- ./bewcloud.config.ts:/app/bewcloud.config.ts
|
2024-04-09 12:22:05 +00:00
|
|
|
|
2024-03-16 08:40:24 +00:00
|
|
|
postgresql:
|
2025-12-01 12:25:21 +00:00
|
|
|
image: postgres:18.1
|
2024-03-16 08:40:24 +00:00
|
|
|
environment:
|
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
|
- POSTGRES_PASSWORD=fake
|
|
|
|
|
- POSTGRES_DB=bewcloud
|
Migrate email provider (from Brevo to generic SMTP) (#67)
This means we now need to have the text and HTML content set in the code, which is arguably better.
In order to avoid allowing legacy Brevo API Key support, this will also introduce breaking changes and will be released as v2.0.0.
I took the opportunity to remove a few deprecated things (like legacy ENV-based config), upgrade PostgreSQL, and pin a specific version in `docker-compose.yml`, since I don't plan to do breaking releases anytime soon, and upgrading PostgreSQL should be fine from now on if the version is pinned.
If you were using Brevo with an API Key, they support SMTP as well, just update your config.
If you were using ENV-based config, check `bewcloud.config.sample.ts`to create your `bewcloud.config.ts`.
If you need help upgrading you PostgreSQL container, I've written a simple guide [step-by-step guide](https://news.onbrn.com/step-by-step-guide-upgrading-postgresql-docker-containers/).
2025-06-10 09:28:13 +00:00
|
|
|
restart: always
|
2024-03-16 08:40:24 +00:00
|
|
|
volumes:
|
2025-12-01 12:25:21 +00:00
|
|
|
- bewcloud-db:/var/lib/postgresql/18/docker
|
2025-08-28 13:57:51 +00:00
|
|
|
# NOTE: uncomment below only if you need to connect to the database from outside the container
|
|
|
|
|
# ports:
|
|
|
|
|
# - 127.0.0.1:5432:5432
|
2024-03-16 08:40:24 +00:00
|
|
|
ulimits:
|
|
|
|
|
memlock:
|
|
|
|
|
soft: -1
|
|
|
|
|
hard: -1
|
2024-04-09 12:22:05 +00:00
|
|
|
mem_limit: '256m'
|
2024-03-16 08:40:24 +00:00
|
|
|
|
2025-07-20 09:35:32 +00:00
|
|
|
# NOTE: If you don't want to use the CardDav/CalDav servers, you can comment/remove this service.
|
|
|
|
|
radicale:
|
2026-01-18 16:59:53 +00:00
|
|
|
image: tomsquest/docker-radicale:3.6.0.0
|
2025-08-28 13:57:51 +00:00
|
|
|
# NOTE: uncomment below only if you need to connect to the CardDav/CalDav servers from outside the container
|
2025-08-27 15:44:01 +00:00
|
|
|
# ports:
|
|
|
|
|
# - 127.0.0.1:5232:5232
|
2025-07-20 09:35:32 +00:00
|
|
|
init: true
|
|
|
|
|
read_only: true
|
|
|
|
|
security_opt:
|
|
|
|
|
- no-new-privileges:true
|
|
|
|
|
cap_drop:
|
|
|
|
|
- ALL
|
|
|
|
|
cap_add:
|
|
|
|
|
- SETUID
|
|
|
|
|
- SETGID
|
|
|
|
|
- CHOWN
|
|
|
|
|
- KILL
|
|
|
|
|
restart: always
|
|
|
|
|
volumes:
|
|
|
|
|
- ./data-radicale:/data
|
|
|
|
|
- ./radicale-config:/config:ro
|
|
|
|
|
mem_limit: '256m'
|
|
|
|
|
|
2024-03-16 08:40:24 +00:00
|
|
|
volumes:
|
2024-04-09 12:22:05 +00:00
|
|
|
bewcloud-db:
|
2024-03-16 08:40:24 +00:00
|
|
|
driver: local
|