Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

git-pr: jobs not running #79

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,20 @@ services:
dockerfile: Dockerfile
image: backoffice_local_django
depends_on:
- postgres-backoffice
- redis
redis:
condition: service_started
postgres-backoffice:
condition: service_started
opensearch:
condition: service_healthy
volumes:
- ./backoffice:/app:z
env_file:
- ./backoffice/.envs/local/.django
- ./backoffice/.envs/local/.postgres
ports:
- "8000:8000"
command: sh -c 'poetry run python manage.py migrate && poetry run python manage.py runserver 0.0.0.0:8000'
command: sh -c 'poetry run python manage.py migrate && poetry run python manage.py opensearch index create --force && poetry run python manage.py runserver 0.0.0.0:8000'

postgres-airflow:
image: postgres:13
Expand Down Expand Up @@ -170,6 +174,11 @@ services:
mem_limit: 2g
ports:
- "9200:9200"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 30s
timeout: 10s
retries: 5

airflow-webserver:
<<: *airflow-common
Expand Down