-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (82 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
91 lines (82 loc) · 1.81 KB
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
90
91
version: '3'
services:
api-gateway:
image: nginx
container_name: api-gateway
ports:
- 80:80
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf
networks:
- alphanetwork
book:
build:
context: ./book-services/
dockerfile: ./book-services/Dockerfile
environment:
- APP_HOST=${APP_BOOK_HOST}
- APP_PORT=${APP_BOOK_PORT}
ports:
- 3000:3000
depends_on:
- db-services
networks:
- alphanetwork
order:
build:
context: ./order-services/
dockerfile: ./order-services/Dockerfile
environment:
- APP_HOST=${APP_ORDER_HOST}
- APP_PORT=${APP_ORDER_PORT}
ports:
- 8000:8000
depends_on:
- db-services
networks:
- alphanetwork
user:
build:
context: ./user-services/
dockerfile: ./user-services/Dockerfile
environment:
- APP_HOST=${APP_USER_HOST}
- APP_PORT=${APP_USER_PORT}
ports:
- 5000:5000
depends_on:
- db-services
networks:
- alphanetwork
db-services:
container_name: db-book
image: mysql
environment:
- MYSQL_DATABASE=${MYSQL_BOOK_NAME}
- MYSQL_DATABASE=${MYSQL_ORDER_NAME}
- MYSQL_DATABASE=${MYSQL_USER_NAME}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASS=${MYSQL_PASS}
ports:
- 3306:3306
networks:
- alphanetwork
msgbroker:
container_name: msgbroker
image: rabbitmq:3.9.11-management-alpine
ports:
- 15672:15672
- 5672:5672
networks:
- alphanetwork
logstashconf:
container_name: logs
image: docker.elastic.co/logstash/logstash:8.7.0
environment:
- ./config/logstash.conf:/usr/share/logstash/config/logstash.conf
ports:
- 5044:5044
networks:
- alphanetwork
networks:
alphanetwork: