-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (75 loc) · 2.05 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
networks:
entry:
external: true
volumes:
app_node_modules: ~
generated_configs: ~
services:
traefik:
image: traefik:v2.5
logging:
options:
max-size: 1m
restart: always
networks: [entry]
ports:
- "80:80"
- "22:22"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- generated_configs:/configs
command:
- --api=true
- --api.dashboard=true
- --providers.docker=true
- --providers.docker.exposedByDefault=false
- --providers.docker.network=entry
- --providers.file=true
- --providers.file.directory=/configs
- --providers.file.watch=true
- --entryPoints.p80.address=:80
- --entryPoints.p22.address=:22
- --log.level=DEBUG
# - --accessLog
labels:
traefik.enable: "true"
traefik.http.routers.traefik.rule: Host(`traefik.localhost`)
traefik.http.routers.traefik.entrypoints: p80
traefik.http.routers.traefik.service: api@internal
ssh-service:
image: node:16.10.0-stretch
volumes:
- app_node_modules:/app/node_modules
- generated_configs:/app/traefik-configs
- ./:/app
networks: [entry]
working_dir: /app
command: ["sh", "-e", "./in-docker-local-run.sh"]
expose:
- "42222"
environment:
SERVER_HOST: ssh-service
TRAEFIK_ENTRY_POINTS: p80
CONNECTION_PASSWORD: aaa
labels:
traefik.enable: "true"
traefik.tcp.routers.tcprouter0.rule: HostSNI(`*`)
traefik.tcp.routers.tcprouter0.entrypoints: p22
# ssh-service:
# image: ssh-connect:local
# volumes:
# - generated_configs:/app/traefik-configs
# - ./keys:/app/keys
# - ./passphrases:/app/passphrases
# networks: [entry]
# expose:
# - "42222"
# environment:
# SERVER_HOST: ssh-service
# TRAEFIK_ENTRY_POINTS: p80
# labels:
# traefik.enable: "true"
# traefik.tcp.routers.tcprouter0.rule: HostSNI(`*`)
# traefik.tcp.routers.tcprouter0.entrypoints: p22