Pēteris Caune
a72f3adc45
Update requirements to require only pure-python psycopg
...
... and install psycopg-c using instuctions in Dockerfile.
This way, getting a development environment or CI environment ready
is quick and easy, but Docker images still get the C optimizations.
2024-09-03 16:10:53 +03:00
Pēteris Caune
320a7c7733
Fix the Docker healthcheck script to supply correct Host header
...
Commit 8fed685f12
added a HEALTHCHECK
instruction in the Dockerfile. The healthcheck script calls http://localhost:8000/api/v3/status/ , which fails if localhost is not in ALLOWED_HOSTS.
With this change, the healthcheck script is now a Django management
command. It reads Django's ALLOWED_HOSTS setting, grabs the first
element, and uses it in the "Host:" HTTP header when making a HTTP
request.
cc: #1051
2024-08-21 15:52:19 +03:00
Pēteris Caune
6f11b9c0dd
Remove unneeded bits
2024-08-20 13:27:28 +03:00
Pēteris Caune
79b9aae660
Update Dockerfile to install recent rustc (needed to build cryptography)
...
* Healthchecks depends on python library "fido2"
* fido2 depends on python library "cryptography"
* building cryptography requires recent (1.65+) rustc
* cryptography has prebuilt binary wheels for most architectures
but not for arm/v7
* Dockerfile uses bookworm as base, which ships rustc 1.63
* So we now install rust using rustup
This is all terrible.
2024-08-20 13:11:29 +03:00
Pēteris Caune
15e1a988c8
Upgrade docker-compose.yml to use postgres 16, add upgrade instructions
2024-08-19 11:00:37 +03:00
Pēteris Caune
8fed685f12
Update Dockerfile to report container health in docker ps
...
This commit adds a HEALTHCHECK instruction in Dockerfile.
The HEALTHCHECK instruction calls /docker/fetchstatus.sh
which in turn makes a HTTP request to
http://localhost:8000/api/v3/status/
This endpoint makes a test database query and returns non-200
response if the query fails. So, in short, if the Healthchecks
container for any reason is unable to query database, `docker ps`
will now show the container as "unhealthy".
cc: #1045
2024-08-19 10:17:05 +03:00
Pēteris Caune
77f12085bf
Add a note about SMTPD_PORT in README
2024-04-22 14:55:15 +03:00
Pēteris Caune
7734839bcc
Fix Dockerfile to avoid having /wheels/ in the final image
...
This is experimental, let's see if it works...
2024-04-05 13:59:34 +03:00
Pēteris Caune
198c80305e
Remove unused files from docker image, reducing its size slightly
2024-04-05 13:38:42 +03:00
Pēteris Caune
db31cacc86
Fix syntax
2024-02-16 12:37:59 +02:00
Pēteris Caune
ec0791b4ee
Update the WhatsApp integration to use Twilio Content Templates
2024-02-16 12:37:11 +02:00
Pēteris Caune
33284bd93f
Fix MariaDB version check
...
Naively comparing with string "10.7" does not quite work for
versions 10.10 and 10.11 :-)
2024-02-09 14:01:48 +02:00
Pēteris Caune
42f88f4fb0
Add S3_SECURE setting
...
It controls whether to use secure (TLS) connection to S3 or not.
2024-01-10 12:19:45 +02:00
Pēteris Caune
cb1b216125
Increase uWSGI buffer size to allow requests with large cookies
...
Fixes : #925
2023-12-15 13:43:27 +02:00
Pēteris Caune
1026c0a1f2
Update Dockerfile to use Python 3.12
2023-12-15 11:15:42 +02:00
Pēteris Caune
3b8d473980
Add --skip-checks to "manage.py smtpd" to avoid multiple check runs
2023-12-15 11:15:31 +02:00
Pēteris Caune
65b9dd371f
Add system check to validate settings.SITE_ROOT
...
Fixes : #895
2023-12-15 11:04:21 +02:00
Pēteris Caune
c22c8a0a76
Improve markdown markup
2023-10-18 09:17:31 +03:00
Pēteris Caune
e4f233ba30
Sync templates/docs/self_hosted_docker.md and docker/README.md
2023-10-18 09:00:38 +03:00
Pēteris Caune
c123e4d3a9
Add note about SMTPD_PORT in docs
...
cc: #791
2023-10-18 08:39:22 +03:00
Pēteris Caune
89aa0a832b
Update uwsgi.ini to allow UWSGI_PROCESSES env var to override it
2023-10-17 10:24:20 +03:00
Git'Fellow
8dbbd5b9d6
Switch to apt-get ( #893 )
...
More suitable and less error prone to use in scripts
2023-09-20 10:02:34 +03:00
Pēteris Caune
a2fdb5dc52
Update CHANGELOG for v2.10 release
2023-07-02 10:07:02 +03:00
Pēteris Caune
a53e79cc49
Add a note about pre-built images in docs/docker
2023-06-27 15:20:53 +03:00
Pēteris Caune
d4060279f1
Fix arm/v7 build
2023-06-15 13:56:04 +03:00
Pēteris Caune
8d41d284e5
Add libxml2 dependency now required by uwsgi
2023-06-15 09:14:44 +03:00
Pēteris Caune
6dbd665c67
Update Dockerfile to use Debian Bookworm as the base
2023-06-15 09:09:17 +03:00
Pēteris Caune
c324787809
Update Dockerfile to prepare a writable location for data volume
2023-06-13 13:52:59 +03:00
Pēteris Caune
292133526f
Update Dockerfile to install rust via rustup
...
(The rust version in bullseye repositories is now
too old to build cryptography.)
2023-06-05 15:39:13 +03:00
Pēteris Caune
eb7dfe5c63
Add Rocket.Chat integration
...
cc: #463
2023-05-30 12:30:29 +03:00
Pēteris Caune
c17a483be4
Add USE_GZIP_MIDDLEWARE env var which enables GZipMiddleware
2023-05-11 17:31:14 +03:00
Pēteris Caune
d92412a0df
Fix uwsgi.ini to check for .gz files only in the CACHE dir
2023-05-11 17:03:18 +03:00
Pēteris Caune
6a5d151026
Update uwsgi.ini to serve compressed static files
2023-05-11 16:50:26 +03:00
Pēteris Caune
6fa0d49467
Add note about uwsgi running background tasks automatically
2023-04-07 13:35:27 +03:00
Pēteris Caune
a55549894c
Add info about Dockerfile and Docker images in README
2023-04-07 13:24:35 +03:00
Pēteris Caune
82cac0aed8
Tweak uwsgi post buffer size and options
...
* set post-buffering (buffer for POST data) to 16192
* add auto-procname for friendlier process names
* add strict, uwsgi won't start if uwsgi.ini contains invalid options
2023-04-03 12:10:51 +03:00
Pēteris Caune
c6ce8918c5
Remove dollar signs from shell snippets in docker/README
...
cc: #814
2023-03-29 12:08:29 +03:00
Pēteris Caune
5fcbcb637c
Fix .env.example to have SMTPD_PORT undefined by default
2023-03-29 09:42:20 +03:00
Pēteris Caune
bb3f139335
Update the Dockerfile to use Python 3.11
2023-03-07 16:33:34 +02:00
Pēteris Caune
08849d6f22
Update Docker image's uwsgi.ini to use SMTPD_PORT env var
...
Fixes : #791
2023-02-07 13:38:05 +02:00
Pēteris Caune
949dfa5446
Try another cryptography/rust/qemu/armv7 workaround
2022-10-18 16:56:16 +03:00
Pēteris Caune
414d5a9424
Fix MySQL 8 support in the Docker image ( #717 )
2022-10-18 14:06:05 +03:00
Pēteris Caune
0cbe7798ac
Add max-fd=10000 in uwsgi.ini to work around uWSGI issue on Fedora
...
Fixes : #713
2022-10-13 16:26:19 +03:00
Pēteris Caune
b2a6fc20ab
Improve SITE_LOGO_URL docs
...
cc: #697
2022-08-23 11:40:46 +03:00
Pēteris Caune
5baa8a53de
Update Dockerfile with pycurl dependencies
2022-08-16 12:01:15 +03:00
Pēteris Caune
64bb43f74f
Limit allowed protocols, add INTEGRATIONS_ALLOW_PRIVATE_IPS setting
2022-08-16 11:13:14 +03:00
Pēteris Caune
7912f1e4df
Update Dockerfile to start SMTP listener
...
Fixes : #668
2022-06-13 17:15:51 +03:00
Pēteris Caune
1d340d24aa
Add notes in docs about configuring uWSGI via UWSGI_ env vars
...
cc: #656
2022-05-27 15:13:03 +03:00
Pēteris Caune
7889fa3d64
Remove obsolete key
2022-05-16 14:59:56 +03:00
Pēteris Caune
51d1b88a75
Rename /docker/.env -> /docker/.env.example
...
This should help avoid merge conflicts when users fork the
repository and make changes to /docker/.env
cc: #638
2022-04-20 15:55:46 +03:00