-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
71 lines (69 loc) · 1.63 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
68
69
70
71
version: '3'
services:
db:
image: postgres
environment:
- POSTGRES_USER=mbdb
- POSTGRES_DB=mbdb
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
azurite:
image: mcr.microsoft.com/azure-storage/azurite
ports:
- "10000:10000"
volumes:
- azdata:/data
redis:
image: "redis:alpine"
web:
build: .
command:
- bash
- '-c'
- |
pip install -r requirements.txt &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000
environment:
- DATABASE_URL=postgres://mbdb@db/mbdb
- SOCIAL_AUTH_GOOGLE_OAUTH2_KEY
- SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET
- SALESFORCE_CONSUMER_KEY
- SALESFORCE_CONSUMER_SECRET
- SALESFORCE_USER
- SALESFORCE_PASSWORD
- SALESFORCE_HOST
- DEFAULT_WORKING_DIRECTORY
- AZURE_EMULATED_MODE=true
- AZURE_ACCOUNT_NAME=devstoreaccount1
- AZURE_ACCOUNT_KEY=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
- AZURE_CONTAINER=media
- AZURE_CUSTOM_DOMAIN=azurite:10000
- MEDIA_URL=http://localhost:10000/media/
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
- azurite
celerybeat:
build: .
command:
- bash
- '-c'
- |
pip install -r requirements.txt &&
celery -A missionbit worker -B -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
environment:
- DATABASE_URL=postgres://mbdb@db/mbdb
volumes:
- .:/code
depends_on:
- db
- redis
volumes:
pgdata:
azdata: