-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
81 lines (71 loc) · 1.5 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
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
version: '3.0'
services:
db:
image: postgres:14.2-alpine
ports:
- "5432:5432"
volumes:
- ./volumes/postgresql:/var/lib/postgresql/data/
- ./server/init-scripts:/docker-entrypoint-initdb.d
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
interval: 10s
retries: 10
test: 'pg_isready -U "postgres" -d "eventgrid"'
timeout: 2s
networks:
- eventgrid
eventgrid-api:
build:
context: ./server
dockerfile: ./docker/Dockerfile.dev
depends_on:
- db
- rabbitmq
ports:
- "8080:8080"
volumes:
- ./server:/app
networks:
- eventgrid
scheduler:
build:
context: ./server
dockerfile: ./docker/Dockerfile.scheduler
depends_on:
- rabbitmq
volumes:
- ./server:/app
networks:
- eventgrid
messenger:
build:
context: ./server
dockerfile: ./docker/Dockerfile.messenger
depends_on:
- rabbitmq
volumes:
- ./server:/app
networks:
- eventgrid
rabbitmq:
image: "rabbitmq:3-management"
environment:
- RABBITMQ_DEFAULT_USER=rabbitmquser
- RABBITMQ_DEFAULT_PASS=rabbitmqpassword
volumes:
- ./volumes/rabbitmq:/var/lib/rabbitmq
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 5s
timeout: 15s
retries: 5
networks:
- eventgrid
networks:
eventgrid: