You've already forked dockerfiles
							
							
				mirror of
				https://github.com/vimagick/dockerfiles.git
				synced 2025-10-30 23:47:48 +02:00 
			
		
		
		
	add sftp
This commit is contained in:
		| @@ -356,6 +356,7 @@ A collection of delicious docker recipes. | ||||
|       - [x] vnc | ||||
|     - selenoid-ui | ||||
| - [x] sentry | ||||
| - [x] atmoz/sftp | ||||
| - [x] scrapinghub/splash | ||||
| - [x] teamatldocker | ||||
|     - [x] confluence | ||||
|   | ||||
							
								
								
									
										34
									
								
								sftp/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								sftp/README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| sftp | ||||
| ==== | ||||
|  | ||||
|  | ||||
|  | ||||
| ## up and running | ||||
|  | ||||
| ```bash | ||||
| $ chown root:root data | ||||
|  | ||||
| $ docker-compose up -d | ||||
|  | ||||
| $ sftp -P 2222 foo@localhost | ||||
| foo@localhost's password: ****** | ||||
| Connected to foo@localhost. | ||||
| >>> version | ||||
| SFTP protocol version 3 | ||||
| >>> ls | ||||
| upload | ||||
| >>> put README.md upload | ||||
| Uploading README.md to /upload/README.md | ||||
| >>> bye | ||||
|  | ||||
| $ tree data | ||||
| data | ||||
| ├── bar | ||||
| ├── baz | ||||
| ├── foo | ||||
| │   └── upload | ||||
| │       └── README.md | ||||
| └── users.conf | ||||
| ``` | ||||
|  | ||||
| :warning: Changes to existing users are ignored. | ||||
							
								
								
									
										3
									
								
								sftp/data/users.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								sftp/data/users.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| foo:123:1001:100:upload | ||||
| bar:abc:1002:100:upload | ||||
| baz:xyz:1003:100:upload | ||||
							
								
								
									
										9
									
								
								sftp/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								sftp/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| sftp: | ||||
|   image: atmoz/sftp:alpine | ||||
|   ports: | ||||
|     - "2222:22" | ||||
|   volumes: | ||||
|     - /etc/ssh | ||||
|     - ./data:/home | ||||
|     - ./data/users.conf:/etc/sftp/users.conf:ro | ||||
|   restart: unless-stopped | ||||
		Reference in New Issue
	
	Block a user