-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
51 lines (46 loc) · 1.44 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.3"
services:
web:
environment:
- SECRET_KEY=''3izb^ryglj(bvrjb2_y1fZvcnbky#358_l6-nn#i8fkug4mmz!''
- ALLOWED_HOSTS=['*']
- DEBUG=True
- EMAIL_HOST_USER='username@gmail.com'
- EMAIL_HOST_PASSWORD='password'
- MOCK_EMAIL=True
- EMAIL_SERVICE=DJANGO-SMTP
- AWS_REGION_NAME='AWS_REGION_NAME'
- EMAIL_HOST='smtp.gmail.com'
- AWS_ACCESS_KEY_ID='AWS_ACCESS_KEY_ID'
- AWS_SECRET_ACCESS_KEY='AWS_SECRET_ACCESS_KEY'
- PYTHONDONTWRITEBYTECODE=1
env_file:
- ../.env
build: .
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:5555"
volumes:
- .:/code
ports:
- "5555:5555"
depends_on:
- worker
worker:
build: "."
environment:
- SECRET_KEY=''3izb^ryglj(bvrjb2_y1fZvcnbky#358_l6-nn#i8fkug4mmz!''
- ALLOWED_HOSTS=['*']
- DEBUG=True
- EMAIL_HOST_USER='username@gmail.com'
- EMAIL_HOST_PASSWORD='password'
- MOCK_EMAIL=True
- EMAIL_SERVICE=DJANGO-SMTP
- AWS_REGION_NAME='AWS_REGION_NAME'
- EMAIL_HOST='smtp.gmail.com'
- AWS_ACCESS_KEY_ID='AWS_ACCESS_KEY_ID'
- AWS_SECRET_ACCESS_KEY='AWS_SECRET_ACCESS_KEY'
- PYTHONDONTWRITEBYTECODE=1
env_file:
- ../.env
command: celery -A server worker -l info -b ${BROKER_URL} --result-backend ${BROKER_URL}
volumes:
- ./app:/app