Compare commits

...

3 commits

Author SHA1 Message Date
105371abaf Use long command options
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/tests Pipeline was successful
2025-03-23 16:25:03 +01:00
ed37be0c60 Add celery healthcheck & update existing healthcheck 2025-03-23 16:24:33 +01:00
161234defd Bump rabbitmq version 2025-03-23 16:23:45 +01:00
2 changed files with 10 additions and 5 deletions

View file

@ -52,7 +52,7 @@ services:
- postgres-data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3.12
image: rabbitmq:4
memcached:
image: memcached:1.6
@ -78,6 +78,11 @@ services:
--scheduler django
-n worker1@%h
-n worker2@%h
healthcheck:
test: celery --app newsreader status || exit 1
interval: 10s
timeout: 10s
retries: 5
depends_on:
rabbitmq:
condition: service_started
@ -107,9 +112,9 @@ services:
newsreader.wsgi:application
healthcheck:
test: /usr/bin/curl --fail http://django:8000 || exit 1
interval: 30s
interval: 10s
timeout: 10s
retries: 10
retries: 5
depends_on:
memcached:
condition: service_started

View file

@ -60,8 +60,8 @@ COPY ./src /app/src
RUN uv sync --frozen --only-group production --extra sentry
RUN useradd -M -u 1000 newsreader
RUN chown -R newsreader:newsreader /app
RUN useradd --no-create-home --uid 1000 newsreader
RUN chown --recursive newsreader:newsreader /app
USER newsreader