-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.test.yml
57 lines (53 loc) · 1.59 KB
/
docker-compose.test.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
services:
localstack:
build:
context: ./docker/localstack/
image: igvfd-localstack
environment:
- AWS_DEFAULT_REGION=us-west-2
- AWS_ACCESS_KEY_ID=testing
- AWS_SECRET_ACCESS_KEY=testing
- SERVICES=sqs,sts
- LS_LOG=warn
ports:
- "4566:4566"
postgres:
build:
context: ./docker/postgres/
image: igvfd-postgres
environment:
POSTGRES_HOST_AUTH_METHOD: trust
expose:
- "5432"
pyramid:
build:
context: .
dockerfile: ./docker/pyramid/Dockerfile
image: igvfd-pyramid
environment:
- LOCALSTACK_ENDPOINT_URL=http://localstack:4566
- TRANSACTION_QUEUE_URL=http://localstack:4566/000000000000/transaction-queue
- INVALIDATION_QUEUE_URL=http://localhost:4566/000000000000/invalidation-queue
- TRANSACTION_DEAD_LETTER_QUEUE_URL=http://localhost:4566/000000000000/transaction-dead-letter-queue
- INVALIDATION_DEAD_LETTER_QUEUE_URL=http://localhost:4566/000000000000/invalidation-dead-letter-queue
volumes:
- ".:/igvfd"
- "/igvfd/src/igvfd.egg-info"
- "/igvfd/src/igvfd/static"
command: pytest --cov=igvfd -s -o junit_family=legacy --junitxml=./.test-results/junit.xml -m 'not indexing'
ports:
- "6543:6543"
depends_on:
- postgres
nginx:
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
image: igvfd-nginx
volumes:
- "./config/nginx/docker.conf:/etc/nginx/nginx.conf"
command: nginx -c /etc/nginx/nginx.conf -g 'daemon off; pid /dev/null;'
ports:
- "8000:8000"
depends_on:
- pyramid