Browse Source

Documentation updates

[CI SKIP]
master
parent
commit
85719e6d51
  1. 25
      README.md
  2. 6
      docker-compose.yml

25
README.md

@ -1,16 +1,18 @@ @@ -1,16 +1,18 @@
SCP server
==========
Restricted SSH server which allows SCP / SFTP / RSYNC access only. This image is meant to provide an ability to update content in data containers. You would normally make a constellation of your service, a data container, and the scp-server container.
Restricted SSH server which allows SFTP access only. This image is meant to provide an ability to update content in data containers. You would normally make a constellation of your service, a data container, and the scp-server container.
The scp-server container is configured at runtime with environment variables to match the configuration of the main service. The environment variables are:
* AUTHORIZED_KEYS - contains the public SSH keys for the users who will be allowed to upload.
* DATADIR - The location where relative paths start from.
* USERID - The numeric id of the `data` account. Defaults to 33.
* GROUPID - The numeric id of the `data` group. Defaults to 33.
**Environment Variables:**
* `AUTHORIZED_KEYS` - contains the public SSH keys for the users who will be allowed to upload.
* `USERID` - The numeric id of the `data` account. Defaults to 33.
* `GROUPID` - The numeric id of the `data` group. Defaults to 33.
Original code and idea is from https://github.com/gituser173/docker-scp-server.
**Volumes:**
* `/home/data` - Directory where all your data is
* `/etc/ssh/host_keys` - Generated `HostKeys` go here. Mount a volume here so they don't get regenerated all the time the container boots.
Running
-------
@ -27,11 +29,10 @@ scpserver: @@ -27,11 +29,10 @@ scpserver:
AUTHORIZED_KEYS: |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA4FhFro3H....vg0hrC3s0= My First CERT
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAteQ38qb7....uC839w== Second authorized key
DATADIR: /usr/local/apache2/htdocs
USERID: 500
GROUPID: 500
volumes_from:
- htdocs
volumes:
- <DATADIR>:/home/data
httpd:
image: httpd
@ -48,7 +49,9 @@ htdocs: @@ -48,7 +49,9 @@ htdocs:
When started you can upload data into the container (e.g. via scp) as the `data` user:
scp -P <PORT> <FILE> data@<DOCKER-HOST>:
sftp -P <PORT> data@<DOCKER-HOST>
rsync --rsh="ssh -p <PORT>" <FILE> data@localhost:
---
Original code and idea is from https://github.com/gituser173/docker-scp-server.
Forked from https://github.com/eea/eea.docker.scp-server

6
docker-compose.yml

@ -5,11 +5,11 @@ scpserver: @@ -5,11 +5,11 @@ scpserver:
environment:
AUTHORIZED_KEYS: |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA4FhFro3H....vg0hrC3s0= My First CERT
DATADIR: /usr/local/apache2/htdocs
USERID: 500
GROUPID: 500
volumes_from:
- htdocs
volumes:
- /var/tmp/wwwdata:/home/data
- /var/tmp/hostkeys:/etc/ssh/host_keys
httpd:
image: httpd

Loading…
Cancel
Save