forked from django-tenants/django-tenants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (65 loc) · 1.6 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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"
django-tenants-pgadmin:
container_name: django_tenants_pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
volumes:
- ./pgadmin:/root/.pgadmin
ports:
- "${PGADMIN_PORT:-5050}:80"
restart: unless-stopped
redis:
image: redis:6.0.10
ports:
- "6379:6379"