From 8bfa7bde192a985794e51df922ce6cf959ccf762 Mon Sep 17 00:00:00 2001 From: Robin Slot Date: Wed, 31 Jul 2024 16:56:59 +0200 Subject: [PATCH] Add compose file for single celery process setup --- docker-compose-single-celery.yml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docker-compose-single-celery.yml diff --git a/docker-compose-single-celery.yml b/docker-compose-single-celery.yml new file mode 100644 index 0000000..cdf43e2 --- /dev/null +++ b/docker-compose-single-celery.yml @@ -0,0 +1,37 @@ +services: + weblate: + image: weblate/weblate + tmpfs: + - /run + - /tmp + volumes: + - weblate-data:/app/data + - weblate-cache:/app/cache + env_file: + - ./environment + restart: always + read_only: true + depends_on: + - database + - cache + environment: + SINGLE_CELERY_PROCESS: 1 + database: + image: postgres:16-alpine + env_file: + - ./environment + volumes: + - postgres-data:/var/lib/postgresql/data + restart: always + cache: + image: redis:7-alpine + restart: always + read_only: true + command: [redis-server, --save, '60', '1'] + volumes: + - redis-data:/data +volumes: + weblate-cache: {} + weblate-data: {} + postgres-data: {} + redis-data: {}