Skip to content

Commit

Permalink
chore: turbo pack install
Browse files Browse the repository at this point in the history
 - build time optimize
  • Loading branch information
Jaejun Kim committed Sep 17, 2023
1 parent e0a7264 commit fa170d3
Show file tree
Hide file tree
Showing 4 changed files with 6,078 additions and 5,996 deletions.
141 changes: 70 additions & 71 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,79 +1,78 @@
version: "3"
version: '3'

services:
next:
container_name: next
build: ./services/next
image: next:ts
volumes:
- next:/usr/app/srcs
networks:
- my_network
env_file:
- ./.env
ports:
- "4242:4242"
restart: always
depends_on:
- nest
- postgresql
next:
container_name: next
build: ./services/next
image: next:ts
volumes:
- next:/usr/app/srcs
networks:
- my_network
# env_file:
# - ./.env
ports:
- '4242:4242'
restart: always
# depends_on:
# - nest
# - postgresql

nest:
container_name: nest
build: ./services/nest
image: nest:ts
volumes:
- nest:/usr/app/srcs
networks:
- my_network
env_file:
- ./.env
ports:
- "3000:3000"
restart: always
depends_on:
- postgresql

postgresql:
container_name: postgresql
build:
context: ./services/postgresql
args:
- DB_NAME=${DB_NAME}
- POSTGRES_USER_ID=${POSTGRES_USER_ID}
- POSTGRES_USER_PASSWORD=${POSTGRES_USER_PASSWORD}
image: db:ts
expose:
- "5432"
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- my_network
restart: always
# nest:
# container_name: nest
# build: ./services/nest
# image: nest:ts
# volumes:
# - nest:/usr/app/srcs
# networks:
# - my_network
# env_file:
# - ./.env
# ports:
# - '3000:3000'
# restart: always
# depends_on:
# - postgresql

# postgresql:
# container_name: postgresql
# build:
# context: ./services/postgresql
# args:
# - DB_NAME=${DB_NAME}
# - POSTGRES_USER_ID=${POSTGRES_USER_ID}
# - POSTGRES_USER_PASSWORD=${POSTGRES_USER_PASSWORD}
# image: db:ts
# expose:
# - '5432'
# volumes:
# - db:/var/lib/postgresql/data
# environment:
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
# networks:
# - my_network
# restart: always

volumes:
next:
driver: local
driver_opts:
type: none
o: bind
device: '${PWD}/srcs/next'
nest:
driver: local
driver_opts:
type: none
o: bind
device: '${PWD}/srcs/nest'
db:
driver: local
driver_opts:
type: none
o: bind
device: '${PWD}/srcs/postgresql'
next:
driver: local
driver_opts:
type: none
o: bind
device: '${PWD}/srcs/next'
# nest:
# driver: local
# driver_opts:
# type: none
# o: bind
# device: '${PWD}/srcs/nest'
# db:
# driver: local
# driver_opts:
# type: none
# o: bind
# device: '${PWD}/srcs/postgresql'

networks:
my_network:
driver: bridge
my_network:
driver: bridge
19 changes: 6 additions & 13 deletions services/next/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,14 @@ echo "----- Start installing npm dependencies -----"

npm install --prefix srcs next
npm install --prefix srcs --save @headlessui/react
# npm install --prefix srcs --save redux
# npm install --prefix srcs --save react-redux
# npm install --prefix srcs --save @reduxjs/toolkit
# npm install --prefix srcs --save react-unity-webgl
# npm install --prefix srcs --save nextjs-unity-webgl
# npm install --prefix srcs --save axios
# npm install --prefix srcs --save axios-auth-refresh
# npm install --prefix srcs --save react-router-dom
# npm install --prefix srcs --save react-cookie
# npm install --prefix srcs --save jsonwebtoken
# npm install --prefix srcs --save redux react-redux @reduxjs/toolkit react-devtools
# npm install --prefix srcs --save react-router-dom react-cookie jsonwebtoken
# npm install --prefix srcs --save react-unity-webgl nextjs-unity-webgl
# npm install --prefix srcs --save axios axios-auth-refresh
# npm install --prefix srcs --save @typescript-eslint
npm install --prefix srcs --save react-devtools

npm update --prefix srcs react react-dom redux react-redux next @reduxjs/toolkit
# npm install --prefix srcs --save turbo

npm update --prefix srcs next @headlessui/react redux react-redux @reduxjs/toolkit react-devtools react-router-dom react-cookie jsonwebtoken react-unity-webgl nextjs-unity-webgl axios axios-auth-refresh @typescript-eslint turbo
echo "----- Successfully installed -----"

npm --prefix srcs run dev --cache-clear
Loading

0 comments on commit fa170d3

Please sign in to comment.