vault-wrap: добавил выбор запуска http/https. INF-1541

This commit is contained in:
svkalinin 2024-07-11 09:16:39 +03:00
parent ef286325b4
commit 8174eb3ead
2 changed files with 6 additions and 3 deletions

View File

@ -8,11 +8,13 @@ services:
environment:
- ACTION_ADDRESS=${ACTION_ADDRESS:-https://secret.corp.samsonopt.ru}
- VAULT_ADDRESS=${VAULT_ADDRESS}
- LISTEN_PORT=8080
- LISTEN_PORT=1234
- TLS_KEY_FILE=${TLS_KEY_FILE}
- TLS_CERT_FILE=${TLS_CERT_FILE}
- TZ=Europe/Moscow
restart: always
ports:
- 1234
build:
context: .
volumes:
@ -26,7 +28,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.http.routers.secret.rule=Host(`secret.corp.samsonopt.ru`)"
- "traefik.http.services.secret.loadbalancer.server.port=8080"
- "traefik.http.services.secret.loadbalancer.server.port=1234"
- "traefik.docker.network=reverse-proxy"
- "traefik.http.routers.secret.tls=false"
- "traefik.http.services.secret.loadbalancer.server.scheme=http"
@ -50,7 +52,7 @@ services:
- traefik-ssl:/ssl/:ro
ports:
- 80:80
- 8080:8080
# - 8080:8080
- 888:888
- 443:443
restart: always

View File

@ -319,3 +319,4 @@ func main() {
http.ListenAndServe(listenAddr, nil)
}
}