-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
37 lines (34 loc) · 939 Bytes
/
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
version: '3'
services:
api:
build: .
depends_on:
- postgres
ports:
- "8000:8000"
volumes:
- ./:/usr/src/app:ro
command: bash -c "alembic upgrade head && uvicorn app.main:app --reload --host 0.0.0.0 --port 8000"
environment:
- DATABASE_HOSTNAME=postgres
- DATABASE_PORT=5432
- DATABASE_NAME=fastapi2
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=1sampai9
- SECRET_KEY=fb0829367f3c4caad977966db0fcc264338aad9ea609da9305f54115b8877a0e
- ALGORITHM=HS256
- ACCESS_TOKEN_EXPIRE_MINUTES=60
- GOOGLE_APPLICATION_CREDENTIALS=app/cert/pawra-key.json
- BUCKET_NAME=pawra-bucket
postgres:
image: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=1sampai9
- POSTGRES_DB=fastapi2
volumes:
- postgres_db:/var/lib/postgresql/data/
volumes:
postgres_db: