-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
89 lines (88 loc) · 1.85 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
81
82
83
84
85
86
87
88
89
version: "3"
services:
frontend:
container_name: frontend
build:
context: ./frontend
ports:
- 3000:3000
volumes:
- ./frontend:/app
depends_on:
- backend-core
env_file:
- frontend/.env
backend-core:
container_name: backend-core
build:
context: ./backend-core
ports:
- 8080:8080
- 2345:2345
volumes:
- ./backend-core:/app/src
env_file:
- backend-core/.env
environment:
- INTERNAL_NETWORK=true
depends_on:
- db-core
- rabbitmq
backend-notification:
container_name: backend-notification
build:
context: ./backend-notification
ports:
- 2346:2346
volumes:
- ./backend-notification:/app/src
env_file:
- backend-notification/.env
environment:
- INTERNAL_NETWORK=true
depends_on:
- db-core
- rabbitmq
db-core:
container_name: db-core
image: postgres
restart: always
environment:
POSTGRES_DB: "boards"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 20s
timeout: 10s
retries: 5
volumes:
- db-core-data:/var/lib/postgresql/data
- ./backend-core/db/testdata:/db/testdata
swagger-core:
container_name: swagger-core
image: swaggerapi/swagger-ui
environment:
SWAGGER_JSON: "/spec/swagger.yaml"
volumes:
- ./docs/swagger.yaml:/spec/swagger.yaml
ports:
- 8081:8080
redis-ws:
container_name: redis-ws
image: redis:latest
ports:
- 6379:6379
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3-management
hostname: rabbitmq
ports:
- 5672:5672
- 15672:15672
env_file:
- backend-notification/.env
volumes:
db-core-data: