-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
39 lines (36 loc) · 831 Bytes
/
docker-compose.test.yml
File metadata and controls
39 lines (36 loc) · 831 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
32
33
34
35
36
37
38
39
version: "3.8"
services:
api:
build:
context: .
dockerfile: ./compose/local/Dockerfile
command: bash -c "cd src/ && alembic upgrade head && while true; do sleep 30; done;"
volumes:
- ./src:/app/src
env_file:
- compose/local/.test.env
secrets:
- api_jwt_private_key
- api_jwt_public_key
ports:
- 8000:8000
depends_on:
- pg
pg:
image: postgres:14-alpine
container_name: proper-fastapi-startup_test_pg_1
volumes:
- test_pg_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=database
ports:
- 5433:5432
secrets:
api_jwt_private_key:
file: ./jwtRSA256-private.pem
api_jwt_public_key:
file: ./jwtRSA256-public.pem
volumes:
test_pg_data: