-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
50 lines (43 loc) · 879 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
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "3"
services:
project_img:
build: .
image: dj-project:latest
db:
image: postgres:15
volumes:
- db:/var/lib/postgresql/data
redis:
image: redis:6
volumes:
- redis:/data
celery:
image: dj-project:latest
volumes:
- .:/project
depends_on:
- db
- redis
command: ./wait-for-it.sh db:5432 -- watchmedo auto-restart --directory=./ --pattern=*.py --recursive -- celery -A project worker -l info
environment:
C_FORCE_ROOT: "1"
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
project:
image: dj-project:latest
volumes:
- .:/project
depends_on:
- db
- redis
- celery
- mailhog
command: ./wait-for-it.sh db:5432 -- python manage.py runserver 0:8000
ports:
- "8000:8000"
volumes:
db:
redis: