-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 917 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:
web:
build: .
volumes:
- .:/usr/src/app
ports:
- 8000:8000
environment:
ENV: development
depends_on:
- db
- sqs
worker:
build: .
volumes:
- .:/usr/src/app
command: bash -c "cd src/ && celery -A app worker --loglevel=debug"
depends_on:
- web
- sqs
beat:
build: .
volumes:
- .:/usr/src/app
command: bash -c "cd src/ && celery -A app beat --loglevel=debug"
depends_on:
- web
- sqs
db:
image: postgres:12
ports:
- 5432:5432
volumes:
- ./docker/db/pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: app
sqs:
image: roribio16/alpine-sqs
ports:
- 9324:9324
- 9325:9325
volumes:
- ./config/elasticmq.conf:/opt/config/elasticmq.conf