сhore(): infrastructure improvements
This commit is contained in:
@@ -129,6 +129,38 @@ services:
|
||||
restart: unless-stopped
|
||||
shm_size: 4mb
|
||||
|
||||
backend-celery-beat:
|
||||
build:
|
||||
context: ./src/backend
|
||||
dockerfile: Containerfile
|
||||
target: app
|
||||
tags:
|
||||
- lotty-backend:latest
|
||||
pull: true
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
command: ["celery -A config beat -l INFO"]
|
||||
depends_on:
|
||||
valkey:
|
||||
restart: false
|
||||
condition: service_healthy
|
||||
required: true
|
||||
env_file:
|
||||
- path: ./infrastructure/configs/backend/.env.template
|
||||
required: true
|
||||
- path: ./infrastructure/configs/backend/.env
|
||||
required: false
|
||||
healthcheck:
|
||||
test: ["CMD", "celery", "-A", "config", "inspect", "ping"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
start_interval: 2s
|
||||
networks:
|
||||
- default
|
||||
restart: unless-stopped
|
||||
shm_size: 4mb
|
||||
|
||||
celery-exporter:
|
||||
image: docker.io/danihodovic/celery-exporter:latest
|
||||
command:
|
||||
|
||||
Reference in New Issue
Block a user