-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (38 loc) · 953 Bytes
/
docker-compose.yml
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
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: ../docker/Dockerfile.backend
ports:
- "5000:5000"
environment:
- DATABASE_URI=postgresql://postgres:password@db:5432/straydb
- GOOGLE_APPLICATION_CREDENTIALS=/app/google-credentials.json
volumes:
- ./google-credentials.json:/app/google-credentials.json:ro
depends_on:
- db
frontend:
build:
context: ./frontend
dockerfile: ../docker/Dockerfile.frontend
ports:
- "3000:3000"
environment:
- VITE_API_BASE_URL=http://localhost:5000
- VITE_GOOGLE_MAPS_API_KEY=${GOOGLE_MAPS_API_KEY}
depends_on:
- backend
db:
image: postgres:13
environment:
- POSTGRES_DB=straydb
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
postgres_data: