2019-06-24 19:46:33 +00:00
|
|
|
version: '2.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
proxy:
|
2019-08-08 21:35:17 +00:00
|
|
|
build: server
|
2019-06-24 19:46:33 +00:00
|
|
|
ports:
|
2019-08-08 21:35:17 +00:00
|
|
|
- "2222:2222"
|
2019-06-24 19:46:33 +00:00
|
|
|
volumes:
|
|
|
|
# This key must be provided
|
2019-06-25 02:13:04 +00:00
|
|
|
# - ./id_rsa_proxy.pub:/etc/authorized_keys/mole
|
|
|
|
- ./authorized_keys:/etc/authorized_keys/mole
|
2019-08-08 20:40:37 +00:00
|
|
|
# Mount host keys
|
|
|
|
- ./keys/etc/ssh/ssh_host_dsa_key:/etc/ssh/ssh_host_dsa_key
|
|
|
|
- ./keys/etc/ssh/ssh_host_ecdsa_key:/etc/ssh/ssh_host_ecdsa_key
|
|
|
|
- ./keys/etc/ssh/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key
|
|
|
|
- ./keys/etc/ssh/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key
|
2019-06-24 19:46:33 +00:00
|
|
|
environment:
|
|
|
|
- SSH_USERS=mole:101:101
|
|
|
|
|
|
|
|
web:
|
|
|
|
image: stefanscherer/whoami
|
|
|
|
expose:
|
|
|
|
- 8080
|
|
|
|
ports:
|
|
|
|
# This port is published to debug that the web server is actually running
|
|
|
|
- "8080:8080"
|