-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
41 lines (36 loc) · 1.28 KB
/
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
38
39
40
41
version: '3'
services:
traefik:
image: traefik:v2.5
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
labels:
- "traefik.enable=true"
sshcontainer:
build:
context: ssh-container
sshtows:
image: docker.io/razikus/sshtows:1.0.1
environment:
SSH_USER: "admin"
SSH_PASS: "admin123123"
SSH_HOST: "sshcontainer"
SSH_PORT: "22"
labels:
- "traefik.enable=true"
- "traefik.http.routers.sshtows-websocket.rule=Path(`/ssh`)"
- "traefik.http.routers.sshtows-websocket.entrypoints=web"
- "traefik.http.routers.sshtows-websocket.middlewares=sshtows-stripprefix"
- "traefik.http.routers.sshtows-static.rule=PathPrefix(`/`)"
- "traefik.http.routers.sshtows-static.entrypoints=web"
- "traefik.http.middlewares.sshtows-stripprefix.stripprefix.prefixes=/ssh"
- "traefik.http.middlewares.auth.basicauth.users=admin:$$apr1$$ro0zs3dk$$q7CjVX8gtmOrspmhSj5ki0" # admin : admin
- "traefik.http.routers.sshtows-websocket.middlewares=sshtows-stripprefix,auth"
- "traefik.http.routers.sshtows-static.middlewares=auth"