forked from django-tenants/django-tenants
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (50 loc) · 1.16 KB
/
docker-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
43
44
45
46
47
48
49
50
51
version: '3.7'
services:
db:
image: postgres
container_name: django_tenants_db
volumes:
- ./postgres-data:/var/lib/postgresql/data:z
environment:
- POSTGRES_USER=django_tenants
- POSTGRES_PASSWORD=django_tenants
- POSTGRES_DB=django_tenants
- DATABASE_PORT=5433
ports:
- "5433:5432"
web:
build: .
command: gunicorn dts_test_project.wsgi:application --bind 0.0.0.0:8088
container_name: django_tenants_web
volumes:
- .:/code:z
ports:
- "8088:8088"
depends_on:
- db
environment:
- DATABASE_USER=django_tenants
- DATABASE_PASSWORD=django_tenants
- DATABASE_DB=django_tenants
- DATABASE_HOST=db
django-tenants-test:
build: .
links:
- db
depends_on:
- db
volumes:
- .:/code:z
command: ./run_tests_in_docker.sh
environment:
- POSTGRES_USER=django_tenants
- POSTGRES_PASSWORD=django_tenants
- DATABASE_USER=django_tenants
- DATABASE_PASSWORD=django_tenants
- DATABASE_DB=django_tenants
- DATABASE_HOST=db
ports:
- "8080:8080"
stdin_open: true
tty: true
restart: "no"