vault-wrap: правка скриптов запуска.
This commit is contained in:
parent
fca7746520
commit
cc28237b9c
|
@ -78,13 +78,13 @@ traefik_deploy:
|
|||
<<: *dedicated-runner
|
||||
stage: deploy
|
||||
script:
|
||||
- mkdir -p /usr/local/etc/traefik
|
||||
- mkdir -p /home/gitlab-runner/traefik
|
||||
- docker volume create traefik_traefik-ssl
|
||||
- docker volume create traefik_traefik-dynamic-conf
|
||||
- docker run --rm -v traefik_traefik-ssl:/temporary -v /etc/ssl/certs/:/files alpine cp files/runner1-prod.corp.samsonopt.ru.crt /temporary
|
||||
- docker run --rm -v traefik_traefik-ssl:/temporary -v /etc/ssl/certs/:/files alpine cp files/runner1-prod.corp.samsonopt.ru.key /temporary
|
||||
- docker run --rm -v traefik_traefik-dynamic-conf:/temporary -v ./traefik-files:/files alpine cp files/certificates.yml /temporary
|
||||
- cp traefik-files/traefik.yml /usr/local/etc/traefik/traefik.yml
|
||||
- cp traefik-files/traefik.yml /home/gitlab-runner/traefik/traefik.yml
|
||||
- export TLS_CERT_FILE=runner1-prod.corp.samsonopt.ru.crt
|
||||
- export TLS_KEY_FILE=runner1-prod.corp.samsonopt.ru.key
|
||||
- if [ -e .ci_status/vault_wrap_release ]; then docker-compose -f docker-compose.yml up -d traefik; fi
|
||||
|
|
|
@ -42,7 +42,7 @@ services:
|
|||
- --providers.file.watch=true
|
||||
volumes:
|
||||
- traefik-dynamic-conf:/configuration/
|
||||
- /usr/local/etc/traefik/traefik.yml:/traefik.yml:ro
|
||||
- /home/gitlab-runner/traefik/traefik.yml:/traefik.yml:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- traefik-ssl:/ssl/:ro
|
||||
ports:
|
||||
|
|
Loading…
Reference in New Issue
Block a user