forked from nrkfred/tenant-schemas-celery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-compose.yml
37 lines (33 loc) · 944 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
version: "3.6"
services:
postgres:
image: postgres:10
environment:
- POSTGRES_PASSWORD=qwe123
- POSTGRES_USER=tenant_celery
- POSTGRES_DB=tenant_celery
logging:
driver: "none"
rabbitmq:
image: rabbitmq
logging:
driver: "none"
app:
image: "python:${PYTHON_VERSION:-3.6}-slim"
depends_on:
- postgres
- rabbitmq
environment:
- DATABASE_HOST=postgres
- BROKER_URL=amqp://guest:guest@rabbitmq:5672/
- TENANT_SCHEMAS=${TENANT_SCHEMAS:-django-tenants}
- 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"]