-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.tests.yml
64 lines (59 loc) · 1.73 KB
/
docker-compose.tests.yml
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
64
version: '3.4'
networks:
integration-tests:
driver: bridge
services:
vh-video-api-tests:
image: vh-api-tests
build:
context: ./
dockerfile: tests/Dockerfile
entrypoint:
[
"/wait-for-it.sh",
"test-db:1433",
"-t",
"120",
"--",
"/run-tests.sh"
]
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__VideoApi=Data Source=test-db;Database=VideoApi;User Id=SA;Password=R4ndomP@assword;Trust Server Certificate=True;Encrypt=False
- Azure__StorageConnectionString=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;QueueEndpoint=http://azurite:10001/devstoreaccount1;TableEndpoint=http://azurite:10002/devstoreaccount1;
volumes:
- ./TestResults:/TestResults:rw
- ./Coverage:/Coverage:rw
- ./:/app:rw
depends_on:
- test-db
- azurite
networks:
- integration-tests
azurite:
image: mcr.microsoft.com/azure-storage/azurite
hostname: azurite
restart: always
command: "azurite --blobHost 0.0.0.0 --blobPort 10000 --location /workspace --debug /workspace/debug.log"
ports:
- 11000:10000
- 11001:10000
- 11002:10000
volumes:
- ./azurite:/workspace
networks:
- integration-tests
test-db:
hostname: test-db
image: mcr.microsoft.com/azure-sql-edge
container_name: vh.videoapi.sql.testing
expose:
- 14330
- 1433
ports:
- 14330:1433
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=R4ndomP@assword
networks:
- integration-tests