File tree Expand file tree Collapse file tree 3 files changed +33
-5
lines changed Expand file tree Collapse file tree 3 files changed +33
-5
lines changed Original file line number Diff line number Diff line change
1
+ dist
2
+ build
3
+ .vscode
4
+ node_modules
Original file line number Diff line number Diff line change @@ -2,12 +2,17 @@ FROM node:14-alpine
2
2
3
3
WORKDIR /usr/app
4
4
5
- COPY package*.json ./
5
+ COPY package*.json yarn.lock ./
6
6
7
7
RUN yarn
8
8
9
9
COPY . .
10
10
11
- EXPOSE 3333
11
+ # RUN yarn build
12
12
13
+ # RUN rm -rf ./src ./.github ./.husky
14
+
15
+ EXPOSE 3335
16
+
17
+ # CMD ["yarn", "start"]
13
18
CMD ["yarn" , "dev" ]
Original file line number Diff line number Diff line change 1
1
version : ' 3.7'
2
2
3
3
services :
4
- api :
4
+ database :
5
+ image : postgres
6
+ container_name : compasso_db
7
+ restart : always
8
+ ports :
9
+ - ' ${POSTGRES_PORT}:${POSTGRES_PORT}'
10
+ environment :
11
+ - POSTGRES_USER=${POSTGRES_USER}
12
+ - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
13
+ - POSTGRES_DB=${POSTGRES_DB}
14
+
15
+ app :
5
16
build : .
6
- container_name : api
17
+ container_name : compasso_api
7
18
restart : always
8
19
ports :
9
20
- ' ${API_PORT}:${API_PORT}'
10
21
volumes :
11
- - .:/usr/api
22
+ - .:/usr/app
23
+ links :
24
+ - database
25
+ depends_on :
26
+ - database
27
+
28
+ volumes :
29
+ pgdata :
30
+ driver : local
You can’t perform that action at this time.
0 commit comments