mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 20:57:09 +00:00
<type>(scope): <description>
[body] [footer(s)]
This commit is contained in:
+5
-1
@@ -88,7 +88,7 @@ services:
|
||||
image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest
|
||||
build:
|
||||
context: ./services/backend
|
||||
command: celery -A config worker -l INFO
|
||||
entrypoint: ["/scripts/celery-worker-entrypoint.sh"]
|
||||
depends_on:
|
||||
redis:
|
||||
restart: false
|
||||
@@ -106,6 +106,10 @@ services:
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
start_interval: 2s
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./infrastructure/backend/scripts
|
||||
target: /scripts
|
||||
restart: unless-stopped
|
||||
|
||||
celery-exporter:
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "Installing required libs..."
|
||||
pip install -r checker_requirements.txt
|
||||
|
||||
echo "Starting Celery worker..."
|
||||
celery -A config worker -l INFO
|
||||
@@ -24,4 +24,6 @@ FROM docker.io/nginx:latest
|
||||
|
||||
COPY --from=builder /app/static /usr/share/nginx/html
|
||||
|
||||
COPY checker_requirements.txt /usr/share/nginx/html
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Reference in New Issue
Block a user