File tree Expand file tree Collapse file tree 5 files changed +115
-3
lines changed Expand file tree Collapse file tree 5 files changed +115
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ services:
30
30
path : user-service
31
31
target : /user-service
32
32
33
-
34
33
backend :
35
34
build : backend
36
35
env_file :
@@ -43,7 +42,74 @@ services:
43
42
path : backend
44
43
target : backend/app
45
44
45
+ # blob and mq
46
+ redis :
47
+ image : redis
48
+ container_name : redis-peerprep
49
+ extra_hosts :
50
+ - " host.docker.internal:host-gateway"
51
+ ports :
52
+ - " 9190:6379"
53
+
54
+ rabbitmq :
55
+ image : rabbitmq:3-management
56
+ container_name : rabbitmq
57
+ environment :
58
+ RABBITMQ_DEFAULT_USER : grp14
59
+ RABBITMQ_DEFAULT_PASS : grp14
60
+ extra_hosts :
61
+ - " host.docker.internal:host-gateway"
62
+ ports :
63
+ - " 9100:5672"
64
+ - " 9101:15672"
65
+
66
+ matching-service :
67
+ build : matching-service
68
+ env_file :
69
+ - matching-service/.env
70
+ extra_hosts :
71
+ - " host.docker.internal:host-gateway"
72
+ develop :
73
+ watch :
74
+ - action : rebuild
75
+ path : matching-service
76
+ target : matching-service/app
77
+ depends_on :
78
+ - rabbitmq
79
+ - redis
80
+
81
+ matching-service-api :
82
+ build : matching-service-api
83
+ env_file :
84
+ - matching-service-api/.env
85
+ extra_hosts :
86
+ - " host.docker.internal:host-gateway"
87
+ ports :
88
+ - " 9200:9200"
89
+ develop :
90
+ watch :
91
+ - action : rebuild
92
+ path : matching-service
93
+ target : matching-service/app
94
+ depends_on :
95
+ - rabbitmq
96
+
97
+ storage-blob-api :
98
+ build : storage-blob-api
99
+ env_file :
100
+ - storage-blob-api/.env
101
+ extra_hosts :
102
+ - " host.docker.internal:host-gateway"
103
+ ports :
104
+ - " 9300:9300"
105
+ develop :
106
+ watch :
107
+ - action : rebuild
108
+ path : storage-blob-api
109
+ target : storage-blob-api/app
110
+ depends_on :
111
+ - redis
46
112
# mongo:
47
113
# image: "mongo:latest"
48
114
# ports:
49
- # - "27017:27017"
115
+ # - "27017:27017"
Original file line number Diff line number Diff line change
1
+ FROM golang:1.23
2
+
3
+ WORKDIR /matching-service-api
4
+
5
+ COPY go.mod go.sum ./
6
+ RUN go mod download
7
+
8
+ COPY . .
9
+
10
+ # Build
11
+ RUN CGO_ENABLED=0 GOOS=linux go build -o /matching-service-api/app
12
+
13
+ EXPOSE 9200
14
+
15
+ # Run
16
+ CMD ["/matching-service-api/app" ]
Original file line number Diff line number Diff line change
1
+ FROM golang:1.23
2
+
3
+ WORKDIR /matching-service
4
+
5
+ COPY go.mod go.sum ./
6
+ RUN go mod download
7
+
8
+ COPY . .
9
+
10
+ # Build
11
+ RUN CGO_ENABLED=0 GOOS=linux go build -o /matching-service/app
12
+
13
+ # Run
14
+ CMD ["/matching-service/app" ]
Original file line number Diff line number Diff line change
1
+ FROM golang:1.23
2
+
3
+ WORKDIR /storage-blob-api
4
+
5
+ COPY go.mod go.sum ./
6
+ RUN go mod download
7
+
8
+ COPY . .
9
+
10
+ # Build
11
+ RUN CGO_ENABLED=0 GOOS=linux go build -o /storage-blob-api/app
12
+
13
+ EXPOSE 9300
14
+
15
+ # Run
16
+ CMD ["/storage-blob-api/app" ]
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ WORKDIR /user-service
4
4
# TODO: don't include the .env file in the COPY
5
5
# TODO: multistage build
6
6
COPY package*.json ./
7
- RUN npm install
7
+ RUN npm install --verbose
8
8
RUN npm rebuild bcrypt --build-from-source
9
9
COPY . .
10
10
EXPOSE 3001
You can’t perform that action at this time.
0 commit comments