generated from coop-cloud/example
Fix owner on /content
This commit is contained in:
parent
8d3acfbd5d
commit
29c4030009
@ -14,12 +14,27 @@ services:
|
|||||||
secrets:
|
secrets:
|
||||||
- ssh_password
|
- ssh_password
|
||||||
volumes:
|
volumes:
|
||||||
- content:/content
|
- content:/content:rw
|
||||||
ports:
|
ports:
|
||||||
- 2220:2222
|
- 2220:2222
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
# The following is an admittedly hacky way of setting the owner
|
||||||
|
# of the `content` volume to the unprivileged `sftp` user, so
|
||||||
|
# that content can be transferred through the unprivileged sshd process
|
||||||
|
# using `scp` etc.
|
||||||
|
sshstart:
|
||||||
|
image: lscr.io/linuxserver/openssh-server:latest
|
||||||
|
user: root
|
||||||
|
depends_on:
|
||||||
|
- ssh
|
||||||
|
deploy:
|
||||||
|
restart_policy:
|
||||||
|
condition: none
|
||||||
|
volumes:
|
||||||
|
- content:/content:rw
|
||||||
|
entrypoint: [ "bash", "-c", "sleep 10 && chown -R 1000:1000 /content"]
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
ssh_password:
|
ssh_password:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user