From 7b1ce392eb7a3ea2fd2e1e2a4d4567aa9e057a1d Mon Sep 17 00:00:00 2001 From: hashemzadeh Date: Sat, 7 Dec 2024 17:41:34 +0330 Subject: [PATCH 1/2] Change some codes in docker-compose.yml to code using git inside container (powerhears container) --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 287e41a4..2a73b879 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -63,6 +63,8 @@ services: volumes: - ./backend_app/staticfiles:/opt/patrowl-hears/backend_app/staticfiles - ./docker-entrypoint.sh:/opt/patrowl-hears/docker-entrypoint.sh + - ${HOME}/.ssh:/root/.ssh # This mounts the .ssh folder to the container's root user .ssh directory + command: /bin/bash -c "chmod 700 /root/.ssh && chmod 600 /root/.ssh/* && chown -R root:root /root/.ssh" links: - db - rabbitmq From 9e78c8ac20431c0d292c4d490702cd7aa293034e Mon Sep 17 00:00:00 2001 From: hashemzadeh Date: Sat, 7 Dec 2024 17:46:28 +0330 Subject: [PATCH 2/2] minor change --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2a73b879..d0aefd0a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -63,7 +63,7 @@ services: volumes: - ./backend_app/staticfiles:/opt/patrowl-hears/backend_app/staticfiles - ./docker-entrypoint.sh:/opt/patrowl-hears/docker-entrypoint.sh - - ${HOME}/.ssh:/root/.ssh # This mounts the .ssh folder to the container's root user .ssh directory + - ${HOME}/.ssh:/root/.ssh # This mounts the .ssh folder to the container's root user .ssh directory command: /bin/bash -c "chmod 700 /root/.ssh && chmod 600 /root/.ssh/* && chown -R root:root /root/.ssh" links: - db