1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- version: '2.3'
- volumes:
- ssh_host_keys:
- repository:
-
- services:
- sshd:
- build: .
- image: docker.io/fphammerle/borgbackup-sshd
- container_name: borgbackup_sshd
- environment:
- SSH_CLIENT_PUBLIC_KEYS: |
- ssh-rsa ...
- ssh-rsa ...
- SSH_CLIENT_PUBLIC_KEYS_APPEND_ONLY: |
- ssh-rsa ...
- ssh-rsa ...
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- read_only: true
- volumes:
- - type: volume
- source: ssh_host_keys
- target: /etc/ssh/host_keys
- read_only: false
- - type: volume
- source: repository
- target: /repository
- read_only: false
-
-
-
-
- - type: tmpfs
- target: /home/borg/.ssh
- tmpfs:
-
- mode: '1777'
- size: 16k
- - type: tmpfs
-
- target: /tmp
- tmpfs:
- mode: '1777'
- size: 1M
- ports:
- - '127.0.0.1:2200:2200'
- cap_drop: [ALL]
- security_opt: [no-new-privileges]
-
- cpus: 0.8
- mem_limit: 128M
|