-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (28 loc) · 849 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (28 loc) · 849 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
services:
postgres:
image: postgres:17.4
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
restart: always
ports:
- 5433:5432
strava:
environment:
- APPLICATION_URL=http://localhost
- STRAVA_CLIENT_ID=${STRAVA_CLIENT_ID}
- STRAVA_CLIENT_SECRET=${STRAVA_CLIENT_SECRET}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- PUSHBULLET_API_KEY=${PUSHBULLET_API_KEY}
- POSTGRES_CONNECTION_STRING=postgresql://postgres:postgres@postgres:5432/postgres
- STRAVA_VERIFY_TOKEN=${STRAVA_VERIFY_TOKEN}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
build:
context: .
dockerfile: Dockerfile
ports:
- 80:8000
depends_on:
- postgres
command: ["fastapi", "run", "src/app/main.py", "--host", "0.0.0.0", "--port", "8000"]