From c0b44949281fbcbb3ae815c85c4e00d3103de17b Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 26 Oct 2024 13:38:48 +0200 Subject: [PATCH] Simplify local dev env --- .gitignore | 2 -- docker-compose.override.yml.dist | 13 ------------- docker-compose.yml | 3 ++- 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 docker-compose.override.yml.dist diff --git a/.gitignore b/.gitignore index d2d0078..8fa06d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ build -home node_modules -docker-compose.override.yml coverage diff --git a/docker-compose.override.yml.dist b/docker-compose.override.yml.dist deleted file mode 100644 index f9a262f..0000000 --- a/docker-compose.override.yml.dist +++ /dev/null @@ -1,13 +0,0 @@ -services: - shlink_dashboard_node: - user: 1000:1000 - volumes: - - /etc/passwd:/etc/passwd:ro - - /etc/group:/etc/group:ro - - ./home:/home/alejandro - - shlink_dashboard_db_postgres: - user: 1000:1000 - volumes: - - /etc/passwd:/etc/passwd:ro - - /etc/group:/etc/group:ro diff --git a/docker-compose.yml b/docker-compose.yml index 367ebc5..cf217a5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,8 @@ services: shlink_dashboard_node: container_name: shlink_dashboard_node - image: node:22.1-alpine + user: 1000:1000 + image: node:22.10-alpine command: /bin/sh -c "cd /home/shlink-dashboard && npm install && node --run start" volumes: - ./:/home/shlink-dashboard