-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
test-compose.yml
42 lines (37 loc) · 1019 Bytes
/
test-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: "3.6"
services:
postgres:
image: postgres:13
environment:
- POSTGRES_PASSWORD=qwe123
- POSTGRES_USER=tenant_celery
- POSTGRES_DB=tenant_celery
logging:
driver: "none"
rabbitmq:
image: rabbitmq
logging:
driver: "none"
redis:
image: redis
logging:
driver: "none"
app:
image: "python:${PYTHON_VERSION:-3.8}-slim"
depends_on:
- postgres
- redis
environment:
- DATABASE_HOST=postgres
- BROKER_URL=${BROKER_URL:-amqp://guest:guest@rabbitmq:5672/}
- ADDITIONAL_REQUIREMENTS=${ADDITIONAL_REQUIREMENTS}
- TASK_TENANT_CACHE_SECONDS=10
volumes:
- ./tenant_schemas_celery:/app/tenant_schemas_celery
- ./test_app:/app/test_app
- ./requirements.txt:/app/requirements.txt
- ./__app_run_tests:/app/__app_run_tests
- ./setup.py:/app/setup.py
- ./VERSION:/app/VERSION
- ./README.md:/app/README.md
command: ["bash", "-c", "cd /app && ./__app_run_tests"]