-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
80 lines (74 loc) · 1.45 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
73
74
75
76
77
78
79
80
version: "3.8"
services:
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- ./backend/:/usr/src/app/
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- db
ports:
- "8080:8080"
env_file:
- ./.env
restart: on-failure
data_injector:
container_name: data_injector
build:
context: ./data_injector
dockerfile: Dockerfile
ports:
- "8082:8082"
env_file:
- ./.env
depends_on:
- rabbitmq
data_processor:
container_name: data_processor
build:
context: ./data_processor
dockerfile: Dockerfile
ports:
- "8081:8081"
env_file:
- ./.env
depends_on:
- rabbitmq
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3.12-management
ports:
- "5672:5672"
db:
container_name: db
image: postgres:14-alpine
env_file:
- ./.env
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -d ${SQL_DB} -U ${POSTGRES_USER}"]
interval: 3s
timeout: 1s
retries: 5
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/usr/src/app
ports:
- "3000:3000"
env_file:
- ./.env
restart: on-failure
depends_on:
- db
- backend
- data_processor
- data_injector
- rabbitmq