Skip to content

Instantly share code, notes, and snippets.

@tzmfreedom
Created January 27, 2020 02:16
Show Gist options
  • Save tzmfreedom/fd3c0076f84774678af03e00295ada0d to your computer and use it in GitHub Desktop.
Save tzmfreedom/fd3c0076f84774678af03e00295ada0d to your computer and use it in GitHub Desktop.
sftpとwebのサンプル
version: '3'
services:
sftp:
image: atmoz/sftp
volumes:
- ./sftp/keys/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key # SSH host key
- ./sftp/keys/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key # SSH host key
- ./xxx/.ssh/id_rsa.pub:/home/foo/.ssh/keys/id_rsa.pub:ro # sync publick key for authorized_keys
- ./sftp/upload:/home/foo/upload # sync upload directory
ports:
- "10022:22"
command: "foo:pass:::upload"
web:
image: nginx:alpine
volumes:
- ./web:/usr/share/nginx/html
ports:
- "10080:80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment