Created
January 27, 2020 02:16
-
-
Save tzmfreedom/fd3c0076f84774678af03e00295ada0d to your computer and use it in GitHub Desktop.
sftpとwebのサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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