remove sudo

This commit is contained in:
Simon Larsen 2023-07-19 12:42:33 +01:00
parent 8a73a7c7ab
commit bddd932eb8
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 12 additions and 4 deletions

View File

@ -192,3 +192,11 @@ services:
extends:
file: ./docker-compose.base.yml
service: nginx
volumes:
postgres:
clickhouse:
networks:
oneuptime:
driver: bridge

View File

@ -45,16 +45,16 @@
"fix-lint": " node --max_old_space_size=18192 ./node_modules/.bin/eslint '**/*.ts*' -c .eslintrc.json --ignore-path .eslintignore --fix ",
"fix": "npm run fix-lint",
"start": "export $(grep -v '^#' config.env | xargs) && docker compose up --remove-orphans -d $npm_config_services",
"ps": "sudo docker compose ps",
"ps": "docker compose ps",
"save-logs": "docker compose logs --tail=100000 $npm_config_services > logs.txt",
"logs": "docker compose logs --tail=100 -f $npm_config_services",
"write-logs": "docker compose logs -f $npm_config_services > logs.txt",
"build": "docker compose build -f docker-compose.dev.yml $npm_config_services",
"force-build": "docker compose build -f docker-compose.dev.yml --no-cache $npm_config_services",
"force-build": "export $(grep -v '^#' config.env | xargs) && docker compose build -f docker-compose.dev.yml --no-cache $npm_config_services",
"force-build-dev": "npm run config-to-dev && npm run force-build",
"kill": "npm run stop",
"prod": "export $(grep -v '^#' config.env | xargs) && docker compose up -f docker-compose.yml -d",
"dev": "export $(grep -v '^#' config.env | xargs) && docker compose up --remove-orphans -f docker-compose.dev.yml -d $npm_config_services",
"prod": "npm run config-to-prod && export $(grep -v '^#' config.env | xargs) && docker compose up -f docker-compose.yml -d",
"dev": "npm run config-to-dev && export $(grep -v '^#' config.env | xargs) && docker compose up --remove-orphans -f docker-compose.dev.yml -d $npm_config_services",
"stop": "docker compose down --remove-orphans",
"prune": "docker system prune",
"remove-all-containers": "docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) || echo 'No running containers'",