Files
bewcloud/docker-compose.yml
Bruno Bernardino 111321e9c6 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 10:28:13 +01:00

35 lines
752 B
YAML

services:
website:
image: ghcr.io/bewcloud/bewcloud:v2.0.0
restart: always
ports:
- 127.0.0.1:8000:8000
mem_limit: '256m'
env_file:
- path: .env
required: true
volumes:
- ./data-files:/app/data-files
# - ./bewcloud.config.ts:/app/bewcloud.config.ts # uncomment if you need to override the default config
postgresql:
image: postgres:17
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=fake
- POSTGRES_DB=bewcloud
restart: always
volumes:
- bewcloud-db:/var/lib/postgresql/data
ports:
- 127.0.0.1:5432:5432
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: '256m'
volumes:
bewcloud-db:
driver: local