-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 867 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 867 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
40
41
services:
db:
container_name: findmycar_db
image: postgres:17-alpine
environment:
POSTGRES_USER: postgresuser
POSTGRES_PASSWORD: postgrespassword
POSTGRES_DB: postgresdb
ports:
- "5435:5432"
volumes:
- db_data:/var/lib/postgresql/data
backend:
container_name: findmycar_backend
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8050:80"
depends_on:
- db
environment:
DATABASE_URL: postgresql://postgresuser:postgrespassword@db:5432/postgresdb
frontend:
container_name: findmycar_frontend
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
- backend
environment:
- PORT=3000
- HOST=0.0.0.0
- VITE_API_URL=http://findmycar_backend:8000
volumes:
db_data: