-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (57 loc) · 1.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (57 loc) · 1.8 KB
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
58
59
60
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: travelengine
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
api:
build:
context: ./backend/TravelEngine.Api
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
ASPNETCORE_ENVIRONMENT: Development
ConnectionStrings__DefaultConnection: "Host=postgres;Port=5432;Database=travelengine;Username=postgres;Password=postgres"
Firebase__ProjectId: "${FIREBASE_PROJECT_ID}"
Gcp__ProjectId: "${GCP_PROJECT_ID}"
Gcp__Location: "us-central1"
Gcp__GeminiModel: "gemini-1.5-pro"
Weather__OpenWeatherMapApiKey: "${OPENWEATHERMAP_API_KEY}"
Cors__AllowedOrigins__0: "http://localhost:5173"
GOOGLE_APPLICATION_CREDENTIALS: /secrets/gcp-key.json
volumes:
- ./secrets/gcp-key.json:/secrets/gcp-key.json:ro
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
VITE_FIREBASE_API_KEY: "${VITE_FIREBASE_API_KEY}"
VITE_FIREBASE_AUTH_DOMAIN: "${VITE_FIREBASE_AUTH_DOMAIN}"
VITE_FIREBASE_PROJECT_ID: "${FIREBASE_PROJECT_ID}"
VITE_FIREBASE_STORAGE_BUCKET: "${VITE_FIREBASE_STORAGE_BUCKET}"
VITE_FIREBASE_MESSAGING_SENDER_ID: "${VITE_FIREBASE_MESSAGING_SENDER_ID}"
VITE_FIREBASE_APP_ID: "${VITE_FIREBASE_APP_ID}"
VITE_GOOGLE_MAPS_API_KEY: "${VITE_GOOGLE_MAPS_API_KEY:-}"
ports:
- "3000:80"
environment:
BACKEND_URL: "http://api:8080"
depends_on:
- api
volumes:
pgdata: