Compare commits
2 Commits
8f99dbfcc3
...
39050124a8
Author | SHA1 | Date |
---|---|---|
b1ek | 39050124a8 | |
b1ek | d2c4b9e6d0 |
|
@ -1,6 +1,7 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
@ -14,10 +15,12 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- homepage
|
- homepage
|
||||||
redis:
|
redis:
|
||||||
|
restart: always
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
networks:
|
networks:
|
||||||
- homepage
|
- homepage
|
||||||
db:
|
db:
|
||||||
|
restart: always
|
||||||
image: postgres:alpine
|
image: postgres:alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: '${DB_PASSWORD}'
|
POSTGRES_PASSWORD: '${DB_PASSWORD}'
|
||||||
|
|
16
install
16
install
|
@ -1,24 +1,28 @@
|
||||||
#!/bin/bash
|
#!/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
|
if [[ $APP_DEBUG == 'true' ]]; then
|
||||||
npm i
|
yarn install
|
||||||
|
|
||||||
cd scripts
|
cd scripts
|
||||||
npm i
|
yarn install
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
npm i --prod
|
yarn install --prod
|
||||||
|
|
||||||
cd scripts
|
cd scripts
|
||||||
npm i --prod
|
yarn install --prod
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "Installing \033[32m$PACKAGES\033[0m"
|
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 $PACKAGES
|
||||||
|
npm i -g $DEV_PGKS
|
||||||
else
|
else
|
||||||
npm i -g --prod $PACKAGES
|
npm i -g --prod $PACKAGES
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue