-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
56 lines (51 loc) · 1.04 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
49
50
51
52
53
54
55
56
version: "3"
services:
rabbit-mq:
image: rabbitmq:3-management-alpine
container_name: coinmena_rabbit_mq
env_file: ".env"
expose:
- "5672"
ports:
- "5672:5672"
postgres:
image: postgres:13.3
container_name: coinmena_postgres
env_file: ".env"
expose:
- "5432"
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
django: &django
stdin_open: true
tty: true
restart: always
build:
context: .
image: coinmena_django
container_name: coinmena_django
env_file: ".env"
expose:
- "8000"
ports:
- "8000:8000"
depends_on:
- postgres
- rabbit-mq
volumes:
- ./pyproject.toml:/app/pyproject.toml
- ./poetry.lock:/app/poetry.lock
- ./.flake8:/app/.flake8
- ./src:/app/src
celerybeat:
<<: *django
container_name: coinmena_celeryworker
depends_on:
- rabbit-mq
- postgres
ports: []
command: bash -c "celery -A config worker -l INFO -B"
volumes:
pg_data: {}