Compare commits

..

2 Commits

Author SHA1 Message Date
b1ek 39050124a8
install with yarn and only the necessary 2023-03-12 12:23:17 +10:00
b1ek d2c4b9e6d0
add restarts 2023-03-12 12:22:48 +10:00
2 changed files with 13 additions and 6 deletions

View File

@ -1,6 +1,7 @@
version: '3'
services:
server:
restart: always
build:
context: .
dockerfile: Dockerfile
@ -14,10 +15,12 @@ services:
networks:
- homepage
redis:
restart: always
image: redis:alpine
networks:
- homepage
db:
restart: always
image: postgres:alpine
environment:
POSTGRES_PASSWORD: '${DB_PASSWORD}'

16
install
View File

@ -1,24 +1,28 @@
#!/bin/bash
PACKAGES="gulp-cli gulper gulp mocha sequelize-cli"
PACKAGES="sequelize-cli"
DEV_PGKS="gulp-cli gulper gulp mocha"
if [[ $APP_DEBUG == 'true' ]]; then
npm i
yarn install
cd scripts
npm i
yarn install
cd ..
else
npm i --prod
yarn install --prod
cd scripts
npm i --prod
yarn install --prod
cd ..
fi
echo -e "Installing \033[32m$PACKAGES\033[0m"
if [[ APP_DEBUG == 'true' ]]; then
if [[ APP_DEBUG == 'true' ]]; thenS
echo -e "Installing \033[32m$DEV_PGKS\033[0m"
npm i -g $PACKAGES
npm i -g $DEV_PGKS
else
npm i -g --prod $PACKAGES
fi