-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose-dev.yml
83 lines (78 loc) · 2.35 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
73
74
75
76
77
78
79
80
81
82
83
version: "2.1"
services:
postgres:
image: postgres:9.6
healthcheck:
test: "pg_isready -h localhost -p 5432 -q -U postgres"
interval: 3s
timeout: 5s
retries: 5
environment:
- POSTGRES_DB=tolatables
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
volumes:
- /var/lib/postgresql/data/
ports:
- "5432:5432"
restart: always
redis:
image: redis:4.0
ports:
- "6379:6379"
mongo:
container_name: mongo
healthcheck:
test: "mongo 127.0.0.1:27017 --eval 'db.stats().ok' --quiet || exit 1"
interval: 3s
timeout: 10s
retries: 3
image: mongo:3.4.10
environment:
- MONGO_LOG_DIR=/dev/null
command: mongod
ports:
- "27017:27017"
mongoClientTemp:
image: mongo:3.4.10
container_name: mongoClientTemp
command: mongo --host mongo --eval "db.getSiblingDB('tolatables').createUser({user:'tolatables', pwd:'tolatables', roles:[{role:'dbOwner', db:'tolatables'}]}); db.getSiblingDB('test').createUser({user:'test', pwd:'test', roles:[{role:'dbOwner', db:'test'}]});"
depends_on:
- mongo
tables:
build:
context: .
dockerfile: Dockerfile.dev
container_name: tables
image: tables
volumes:
- .:/code
ports:
- "8080:8080"
depends_on:
- postgres
- mongoClientTemp
- redis
environment:
- DJANGO_SETTINGS_MODULE=tola.settings.dev
- TOLA_DEBUG=True
- TOLA_HOSTNAME=127.0.0.1,localhost
- TOLATABLES_DB_ENGINE=django.db.backends.postgresql_psycopg2
- TOLATABLES_DB_NAME=tolatables
- TOLATABLES_DB_USER=root
- TOLATABLES_DB_PASS=root
- TOLATABLES_DB_HOST=postgres
- TOLATABLES_DB_PORT=5432
- TOLATABLES_MONGODB_NAME=tolatables
- TOLATABLES_MONGODB_USER=tolatables
- TOLATABLES_MONGODB_PASS=tolatables
- TOLATABLES_MONGODB_HOST=mongo
- TOLATABLES_MONGODB_PORT=27017
- TOLA_ACTIVITY_API_URL=
- TOLA_ACTIVITY_API_TOKEN=
- GOOGLE_API_KEY=AIzaSyCnXYlzg5GBjOOk-_Mh8s36aF7OqIalyqE
- GOOGLE_OAUTH_CLIENT_ID=1090285679254-sle9dnkig5lv0gvnvgo5bd7js2i2u9cl.apps.googleusercontent.com
- GOOGLE_OAUTH_CLIENT_SECRET=bZ6NaORHhmAfeZ_s-s9WuLVh
- CELERY_BROKER_URL=redis://redis@redis:6379/0
- ONEDRIVE_REDIRECT_URI=http://localhost:8080/onedrive
- ONEDRIVE_CLIENT_ID=REPLACETHIS