File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ add the below code snippets in "docker-compose.yml" file.
3131 working_dir: /home/node
3232 volumes:
3333 - type: bind
34- source: ./node/app
35- target: /home/node/app
34+ source: ./node
35+ target: /home/node
3636 - 'html:${WEBSERVER_DOC_ROOT}'
3737 hostname: node
3838 restart: unless-stopped
@@ -43,7 +43,7 @@ add the below code snippets in "docker-compose.yml" file.
4343 TZ: '${LOCAL_TIMEZONE}'
4444 labels:
4545 - 'docker-volume-backup.stop-during-backup=true'
46- command: bash -c ' apt-get update && apt-get upgrade -y && apt-get install -y openssh-server && service ssh start && npm init -y && tail -f /dev/null'
46+ command: bash -c " apt-get update && apt-get upgrade -y && apt-get install -y openssh-server && sed -ri 's/^UsePAM yes/UsePAM no/' /etc/ssh/sshd_config && echo $'Port 3000\\nPermitEmptyPasswords yes\\nPermitRootLogin yes' > /etc/ssh/sshd_config.d/image.conf && service ssh start && passwd -d root && npm install && tail -f /dev/null"
4747```
4848
4949and
You can’t perform that action at this time.
0 commit comments