-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
72 lines (64 loc) · 1.31 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
services:
rabbitmq:
image: rabbitmq:3-management
healthcheck:
test: ["CMD-SHELL", "rabbitmqctl status"]
interval: 10s
timeout: 10s
retries: 5
ports:
- "5672:5672" # AMQP port
- "15672:15672" # Management UI port
db:
image: postgres:13
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: mydatabase
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: abc@abc.com
PGADMIN_DEFAULT_PASSWORD: abc
ports:
- "8080:80"
depends_on:
- db
redis:
image: redis:alpine
ports:
- "6379:6379"
web:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- db
- redis
- rabbitmq
celery:
build:
context: .
dockerfile: Dockerfile.celery
command: celery -A alerter worker --loglevel=info --concurrency=1 #further testing required to see if only one celery worker is enough
volumes:
- .:/app
restart: on-failure
env_file:
- .env
depends_on:
- redis
- rabbitmq
- web
volumes:
postgres_data: