diff --git a/docker-compose.yml b/docker-compose.yml index 287e41a..d0aefd0 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