test/connector/http/basicauth/docker-compose.yml
version: '3.0'
services:
nginx:
image: nginx:stable-alpine
ports:
- 8080
healthcheck:
test: ["CMD-SHELL", "curl localhost:8080/test"]
interval: 1s
timeout: 30s
volumes:
- ./http-basic-auth.conf:/etc/nginx/conf.d/default.conf:ro
- ./basic_auth.htpasswd:/etc/nginx/.htpasswd:ro
secretless:
image: secretless-broker-coverage
entrypoint: "/usr/local/bin/secretless-broker -test.v -test.run ^TestCoverage$$ -test.coverprofile=/test-coverage/cover.out"
environment:
SB_RUN_COVERAGE: "true"
SB_DEBUG_ENABLED: "true"
HTTP_HOST: nginx
HTTP_PORT: 8080
volumes:
- ./secretless.yml:/secretless.yml
- ../../../../..:/secretless
- ./test-coverage:/test-coverage
depends_on:
- nginx
test:
image: alpine:latest
command: wget -q -O- nginx:8080/
depends_on:
- secretless
dev:
image: secretless-dev
volumes:
- ../../../..:/secretless