-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
37 lines (34 loc) · 891 Bytes
/
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
version: '3.3'
services:
web:
build: .
command: bash -c "python ./manage.py migrate && daphne project.asgi:application --port 8000 --bind 0.0.0.0"
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- redis
- postgres
environment:
- REDIS_URL=redis://redis:6379
- DJANGO_SECRET_KEY=keep-it-secret
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
worker:
build: .
command: celery -A project worker --loglevel info
volumes:
- .:/app
depends_on:
- web
environment:
- REDIS_URL=redis://redis:6379
- REMAP_SIGTERM=SIGQUIT
- DJANGO_SECRET_KEY=keep-it-secret
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
redis:
image: "redis:alpine"
postgres:
image: "postgres:13.4"
environment:
- POSTGRES_PASSWORD=postgres