-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yaml
48 lines (46 loc) · 1.08 KB
/
docker-compose.yaml
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
version: '3.8'
services:
db:
image: postgres:13.1-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=cardboard_user
- POSTGRES_PASSWORD=cardboard_password
- POSTGRES_DB=cardboard
redis:
image: redis:alpine
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/usr/src/cardboard/:Z
- /usr/src/cardboard/node_modules
ports:
- 8000:8000
environment:
- DATABASE_URL=postgres://cardboard_user:cardboard_password@db/cardboard
- REDIS_URL=redis://redis:6379
- DJANGO_SUPERUSER_PASSWORD=burrito
env_file:
- ./.env
entrypoint:
- ./docker-entrypoint.sh
depends_on:
- db
- redis
celery:
build: .
command: python manage.py celery_worker
volumes:
- .:/usr/src/cardboard/:Z
environment:
- DATABASE_URL=postgres://cardboard_user:cardboard_password@db/cardboard
- REDIS_URL=redis://redis:6379
env_file:
- ./.env
depends_on:
- db
- redis
volumes:
postgres_data: