-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (42 loc) · 929 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
51
version: '3.8'
services:
djserver:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- redis
- db
container_name: djangosercer
redis:
image: redis:7.2.3-alpine3.18
container_name: redisServer
celery:
image: celery:alpine
container_name: celeryServer
build:
context: .
depends_on:
- redis
- djserver
volumes:
- .:/app
command: celery -A project worker --loglevel=info
environment:
CELERY_BROCKER_URL : redis://redis:6379/0
CELERY_RESULT_BACKEND : redis://redis:6379/0
db:
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_DB: amazon
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
postgres_data: