-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose-dev.yml
72 lines (71 loc) · 2.44 KB
/
docker-compose-dev.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
68
69
70
71
72
version: "2.1"
services:
postgres:
container_name: postgres
healthcheck:
test: "pg_isready -h localhost -p 5432 -q -U postgres"
interval: 3s
timeout: 5s
retries: 5
image: postgres:9.6
environment:
POSTGRES_DB: tola_activity
POSTGRES_USER: root
POSTGRES_PASSWORD: root
volumes:
- /var/lib/postgresql/data/
ports:
- "5432:5432"
restart: always
elasticsearch:
container_name: elasticsearch
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:9200"]
interval: 3s
timeout: 5s
retries: 5
image: docker.elastic.co/elasticsearch/elasticsearch:6.0.0-alpha2
ports:
- "9200:9200"
environment:
- xpack.security.enabled=false
web:
build:
context: .
dockerfile: Dockerfile.dev
container_name: web
image: web
volumes:
- .:/code
ports:
- "8080:8080"
depends_on:
- postgres
- elasticsearch
environment:
- DJANGO_SETTINGS_MODULE=tola.settings.dev
- TOLA_ERROR_LOG=error.log
- TOLA_HOSTNAME=127.0.0.1,localhost
- TOLA_DB_ENGINE=django.db.backends.postgresql_psycopg2
- TOLA_DB_NAME=tola_activity
- TOLA_DB_USER=root
- TOLA_DB_PASS=root
- TOLA_DB_HOST=postgres
- TOLA_DB_PORT=5432
- ELASTICSEARCH_URL=http://elasticsearch:9200/
- SOCIAL_AUTH_GOOGLE_OAUTH2_KEY=1090285679254-ep8e9kh2p2juqq8u169fqr5ijfnuaihm.apps.googleusercontent.com
- SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET=kfy1DGJ3POZYtWMGX0l1yoMi
- SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS=toladata.com,humanitec.com,treeaid.org,gmail.com
- SOCIAL_AUTH_LOGIN_REDIRECT_URL=http://dev-v2.tolaactivity.app.tola.io/
- SOCIAL_AUTH_MICROSOFT_GRAPH_KEY=63783b55-0c15-4e94-8ceb-4de040fea71d
- SOCIAL_AUTH_MICROSOFT_GRAPH_SECRET=w8zgk5dz5JVErCNzc8Jz7EM
- SOCIAL_AUTH_MICROSOFT_GRAPH_REDIRECT_URL=https://localhost:8000/complete/microsoft-graph
- TOLA_ACTIVITY_URL=http://tolaactivity.dev.com
- TOLA_TRACK_URL=http://tolatrack.dev.com
- DEFAULT_ORG=TolaData
- DEFAULT_OAUTH_DOMAINS=toladata.com,humanitec.com
- CHARGEBEE_SIGNUP_ORG_URL=https://toladata-test.chargebee.com/hosted_pages/plans/monthly?addons[id][0]=user&addons[quantity][0]=1
- CHARGEBEE_SITE_API_KEY=test_31lcdE7L3grqdkGcvy24ik3lmlJrnA0Ez
- CHARGEBEE_SITE=toladata-test
- TOLA_TRACK_SYNC_ENABLED=False