-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
83 lines (76 loc) · 1.74 KB
/
docker-compose.dev.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3'
services:
postgres:
image: postgres:12.3
volumes:
- transpipe-postgres:/var/lib/postgresql/data
- ./import:/docker-entrypoint-initdb.d
ports:
- 127.0.0.1:5432:5432
environment:
POSTGRES_USER: django_user
POSTGRES_DB: pipeline
POSTGRES_PASSWORD: password
# app:
# build: .
# entrypoint: /usr/local/bin/python
# command: manage.py runserver 0.0.0.0:8000
# volumes:
# - ./pipeline:/transpipe
# ports:
# - 8000:8000
# environment:
# - SQL_HOST=postgres
# - DJANGO_SETTINGS_MODULE=pipeline.settings
# - DEBUG=True
celery_beat:
build: .
entrypoint: celery -A pipeline
command: beat --loglevel=INFO
volumes:
- ./pipeline:/transpipe
environment:
- SQL_HOST=postgres
- DJANGO_SETTINGS_MODULE=pipeline.settings
- DEBUG=True
depends_on:
- redis
- rabbitmq
- postgres
celery_worker:
build: .
entrypoint: celery -A pipeline
command: worker --loglevel=INFO --concurrency=2
volumes:
- ./pipeline:/transpipe
environment:
- SQL_HOST=postgres
- DJANGO_SETTINGS_MODULE=pipeline.settings
- DEBUG=True
depends_on:
- redis
- rabbitmq
- postgres
redis:
image: redis:latest
ports:
- 127.0.0.1:6379:6379
volumes:
- redis-data:/data
rabbitmq:
image: rabbitmq:3.8-management
hostname: rabbitmq
volumes:
- rabbitmq-log:/var/log/rabbitmq
- rabbitmq-data:/var/lib/rabbitmq
ports:
- 127.0.0.1:5672:5672
- 127.0.0.1:15672:15672
environment:
- RABBITMQ_DEFAULT_USER=rabbit
- RABBITMQ_DEFAULT_PASS=rabbit
volumes:
transpipe-postgres:
rabbitmq-log:
rabbitmq-data:
redis-data: