forked from nginxinc/nginx-plus-go-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
63 lines (59 loc) · 1.55 KB
/
compose.yaml
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
services:
nginx:
image: nginx-plus
build:
dockerfile: docker/Dockerfile
secrets:
- nginx-repo.crt
- nginx-repo.key
volumes:
- type: bind
source: ./docker/nginx.conf
target: /etc/nginx/nginx.conf
networks:
default:
aliases:
- nginx-plus-test
ports:
- 8080
nginx-no-stream:
extends:
service: nginx
volumes:
- type: bind
source: ./docker/nginx_no_stream.conf
target: /etc/nginx/nginx.conf
nginx-helper:
extends:
service: nginx
test:
image: golang:1.23
volumes:
- type: bind
source: ./
target: /go/src/github.com/nginxinc/nginx-plus-go-client
working_dir: /go/src/github.com/nginxinc/nginx-plus-go-client
command: go test -v -shuffle=on -race tests/client_test.go
depends_on:
- nginx
- nginx-helper
environment:
- TEST_API_ENDPOINT=http://nginx:8080/api
- TEST_API_ENDPOINT_OF_HELPER=http://nginx-helper:8080/api
- TEST_UNAVAILABLE_STREAM_ADDRESS=nginx:8081
test-no-stream:
extends:
service: test
command: go test -v -shuffle=on -race tests/client_no_stream_test.go
depends_on:
- nginx-no-stream
- nginx-helper
environment:
- TEST_API_ENDPOINT=http://nginx-no-stream:8080/api
- TEST_API_ENDPOINT_OF_HELPER=http://nginx-helper:8080/api
- TEST_UNAVAILABLE_STREAM_ADDRESS=nginx-no-stream:8081
secrets:
nginx-repo.crt:
file: ./docker/nginx-repo.crt
nginx-repo.key:
file: ./docker/nginx-repo.key