-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (44 loc) · 900 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:
db:
image: postgres
environment:
POSTGRES_USER: fampay
POSTGRES_DB: fampay
POSTGRES_PASSWORD: fampay@123
volumes:
- pgdata:/var/lib/posgresql/data
redis:
image: "redis:alpine"
app:
build:
context: .
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
container_name: youtube_service
volumes:
- .:/youtube
ports:
- "8000:8000"
depends_on:
- db
- redis
celery:
build:
context: .
command: celery -A fampay worker --loglevel=info
volumes:
- .:/youtube
depends_on:
- db
- redis
celery-beat:
build:
context: .
command: celery -A fampay beat --loglevel=info
volumes:
- .:/youtube
depends_on:
- db
- redis
volumes:
pgdata: