-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
32 lines (32 loc) · 1.54 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"name": "sqrib--database-manager",
"version": "0.1.1",
"main": "index.js",
"license": "MIT",
"repository": "https://github.com/amine-abdelli/sqrib--database.git",
"author": "Amine Abdelli <[email protected]>",
"scripts": {
"start:cron": "nodemon backup-cron.js",
"database:init": "./db_init.sh",
"database:restore": "./db_init.sh",
"docker:build": "docker build -t sqrib-database--image .",
"docker:run": "docker run -d -p 5432:5432 -v sqrib-database--volume:/var/lib/postgresql/data --name sqrib-database--container sqrib-database--image",
"docker:start": "docker start sqrib-database--container",
"docker:stop": "docker stop sqrib-database--container",
"docker:rm": "yarn docker:stop && docker rm sqrib-database--container",
"docker:rm:volume": "docker volume rm sqrib-database--volume",
"docker:rm:all": "npm run docker:rm && npm run docker:rm:volume",
"docker:logs": "docker logs sqrib-database--container",
"docker:exec": "docker exec -it sqrib-database--container sh",
"docker:exec:db":"docker exec -it sqrib-database--container psql -U postgres sqrib_database",
"docker:backup": "docker exec sqrib-database--container pg_dumpall -c -U postgres > backup.sql",
"docker:restore": "cat backup.sql | docker exec -i sqrib-database--container psql -U postgres",
"docker:backup:local": "docker exec sqrib-database--container pg_dumpall -c -U postgres > backup.sql"
},
"dependencies": {
"cron": "^2.1.0",
"express": "^4.18.2",
"node-cron": "^3.0.2",
"nodemon": "^2.0.20"
}
}