Move to Traefik
This commit is contained in:
parent
bf57c0d5a6
commit
471ccbadc5
36 changed files with 200 additions and 190 deletions
1
internal/component/ssh/ssh.env
Normal file
1
internal/component/ssh/ssh.env
Normal file
|
|
@ -0,0 +1 @@
|
|||
DOCKER_NETWORK_NAME=${DOCKER_NETWORK_NAME}
|
||||
|
|
@ -25,11 +25,17 @@ func (SSH) Context(parent component.InstallationContext) component.InstallationC
|
|||
}
|
||||
|
||||
//go:embed all:ssh
|
||||
//go:embed ssh.env
|
||||
var resources embed.FS
|
||||
|
||||
func (ssh *SSH) Stack(env environment.Environment) component.StackWithResources {
|
||||
return component.MakeStack(ssh, env, component.StackWithResources{
|
||||
Resources: resources,
|
||||
ContextPath: "ssh",
|
||||
|
||||
EnvPath: "ssh.env",
|
||||
EnvContext: map[string]string{
|
||||
"DOCKER_NETWORK_NAME": ssh.Config.DockerNetworkName,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,9 +9,12 @@ services:
|
|||
volumes:
|
||||
- './data/keys:/keys'
|
||||
- '/var/run/docker.sock:/var/run/docker.sock:ro'
|
||||
labels:
|
||||
- "eu.wiss-ki.barrel.distillery=${DOCKER_NETWORK_NAME}"
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: distillery
|
||||
name: ${DOCKER_NETWORK_NAME}
|
||||
external: true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue