Skip to content

Commit

Permalink
internal netowrking
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Nov 26, 2023
1 parent ca61342 commit 59f55d8
Show file tree
Hide file tree
Showing 6 changed files with 13,791 additions and 1,261 deletions.
3 changes: 2 additions & 1 deletion apps/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
"start": "next start",
"docker": "next build && next start"
},
"dependencies": {
"@headlessui/react": "^1.4.2",
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
build: "."
ports:
- 3000:3000
- 5003:5003
- 5001:5003
restart: always
depends_on:
- peppermint_postgres
Expand All @@ -32,7 +32,7 @@ services:
DB_USERNAME: "peppermint"
DB_PASSWORD: "1234"
DB_HOST: "peppermint_postgres"
API_URL: "http://localhost:5003"
API_URL: "http://localhost:5001"

volumes:
pgdata:
3 changes: 1 addition & 2 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ COPY apps/api/package*.json ./apps/api/
COPY apps/client/package*.json ./apps/client/
COPY ./ecosystem.config.js ./ecosystem.config.js


RUN npm i -g prisma
RUN npm i -g typescript@latest -g --force

Expand All @@ -23,7 +22,7 @@ RUN cd apps/api && npm install --production
RUN cd apps/api && npm i --save-dev @types/node && npm run build

RUN cd apps/client && yarn install --production --ignore-scripts --prefer-offline --network-timeout 1000000
RUN cd apps/client && yarn add --dev typescript @types/node --network-timeout 1000000 && yarn build
RUN cd apps/client && yarn add --dev typescript @types/node --network-timeout 1000000

FROM node:lts AS runner

Expand Down
2 changes: 1 addition & 1 deletion ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
apps: [
{
name: "client",
script: "npm run start",
script: "npm run docker",
cwd: "apps/client",
instances: "1",
autorestart: true,
Expand Down
Loading

0 comments on commit 59f55d8

Please sign in to comment.