14 lines
275 B
YAML
14 lines
275 B
YAML
services:
|
|
sshd:
|
|
build:
|
|
context: ./sshd
|
|
container_name: sshd-container
|
|
restart: unless-stopped
|
|
ports:
|
|
- "2222:22"
|
|
volumes:
|
|
- ./keys/authorized_keys:/home/docker/.ssh/authorized_keys:ro
|
|
- ./keys/host_keys:/etc/ssh/host_keys
|
|
- ./data:/data
|
|
command: ["/usr/sbin/sshd","-D","-e"]
|