Compare commits
2 commits
a502fe9088
...
b1aaeaaef8
Author | SHA1 | Date | |
---|---|---|---|
b1aaeaaef8 | |||
7b18c601c2 |
4 changed files with 40 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -122,3 +122,4 @@ dist
|
||||||
yarn.lock
|
yarn.lock
|
||||||
public/css
|
public/css
|
||||||
public/css
|
public/css
|
||||||
|
docker-compose.yml
|
||||||
|
|
37
docker-compose.yml.prod
Normal file
37
docker-compose.yml.prod
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
version: "2.4"
|
||||||
|
|
||||||
|
services:
|
||||||
|
mymusiclibrary-www:
|
||||||
|
container_name: mymusiclibrary-www
|
||||||
|
image: "node:16"
|
||||||
|
restart: always
|
||||||
|
user: "node"
|
||||||
|
working_dir: /home/node/app
|
||||||
|
command: >
|
||||||
|
bash -c "
|
||||||
|
yarn install &&
|
||||||
|
yarn run:all"
|
||||||
|
volumes:
|
||||||
|
- ./:/home/node/app
|
||||||
|
- /home/node/node_modules
|
||||||
|
ports:
|
||||||
|
- 3001:3001
|
||||||
|
depends_on:
|
||||||
|
- mymusiclibrary-db
|
||||||
|
environment:
|
||||||
|
NODE_ENV: ${NODE_ENV}
|
||||||
|
DISCOGS_TOKEN: ${DISCOGS_TOKEN}
|
||||||
|
networks:
|
||||||
|
- mymusiclibrary
|
||||||
|
mymusiclibrary-db:
|
||||||
|
container_name: mymusiclibrary-db
|
||||||
|
image: mongo:latest
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 27617:27017
|
||||||
|
networks:
|
||||||
|
- mymusiclibrary
|
||||||
|
|
||||||
|
networks:
|
||||||
|
mymusiclibrary:
|
||||||
|
driver: bridge
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "Simple application to manage your CD/Vinyl collection",
|
"description": "Simple application to manage your CD/Vinyl collection",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./dist/bin/www",
|
"start": "node ./dist/bin/www",
|
||||||
"dev": "npm-run-all build sass start",
|
"run:all": "npm-run-all build sass start",
|
||||||
"watch": "nodemon -e js,scss",
|
"watch": "nodemon -e js,scss",
|
||||||
"sass": "npx sass sass/index.scss public/css/main.css -s compressed",
|
"sass": "npx sass sass/index.scss public/css/main.css -s compressed",
|
||||||
"prebuild": "rimraf dist",
|
"prebuild": "rimraf dist",
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
"vue": "^3.2.31"
|
"vue": "^3.2.31"
|
||||||
},
|
},
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
"exec": "npm run dev",
|
"exec": "yarn run:all",
|
||||||
"watch": [
|
"watch": [
|
||||||
"src/*",
|
"src/*",
|
||||||
"sass/*"
|
"sass/*"
|
||||||
|
|
Loading…
Reference in a new issue