-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (29 loc) · 847 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (29 loc) · 847 Bytes
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
# This is the docker-compose file for running the API in test mode
# It will spin up both the Fast API and the test database
services:
app:
build:
context: .
dockerfile: Dockerfile
command: pytest /app/tests/automated
ports:
- "8000:80"
environment:
- POSTGRES_USER=test_source_collector_user
- POSTGRES_PASSWORD=HanviliciousHamiltonHilltops
- POSTGRES_DB=source_collector_test_db
# For local development in non-Linux environment
# - POSTGRES_HOST=host.docker.internal
# For GitHub Actions (which use Linux Docker)
- POSTGRES_HOST=172.17.0.1
- POSTGRES_PORT=5432
- GOOGLE_API_KEY=TEST
- GOOGLE_CSE_ID=TEST
depends_on:
- test_db
test_db:
extends:
file: local_database/docker-compose.yml
service: postgres
volumes:
dbscripts: