-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
37 lines (33 loc) · 917 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '2'
services:
ssh-reverse-tunnel:
restart: always
image: ssh-reverse-tunnel
build: ./
container_name: ssh-reverse-tunnel
ports:
- "2222:22"
environment:
- VIRTUAL_HOST=${LETSENCRYPT_HOST}
- VIRTUAL_PORT=8080 # needs to be higher than 1024 for ssh to be able to reverse forward
- LETSENCRYPT_HOST
- LETSENCRYPT_EMAIL
- LETSENCRYPT_TEST
volumes:
- ./identity.pub:/home/tunnel/.ssh/authorized_keys
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- "/etc/nginx/vhost.d"
- "/usr/share/nginx/html"
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "/etc/nginx/certs"
letsencrypt-nginx-proxy-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
volumes_from:
- "nginx-proxy"