-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 804 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 804 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
services:
db:
image: postgres:16
environment:
POSTGRES_DB: cloudpulse
POSTGRES_USER: cloudpulse
POSTGRES_PASSWORD: cloudpulse
ports:
- "5432:5432"
volumes:
- cloudpulse_db:/var/lib/postgresql/data
backend:
build:
context: ./backend
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/cloudpulse
SPRING_DATASOURCE_USERNAME: cloudpulse
SPRING_DATASOURCE_PASSWORD: cloudpulse
APP_CORS_ALLOWED_ORIGINS: "http://localhost:5174,http://localhost:5173"
ports:
- "8080:8080"
depends_on:
- db
frontend:
build:
context: ./frontend
environment:
VITE_API_BASE_URL: http://localhost:8080
ports:
- "5173:80"
depends_on:
- backend
volumes:
cloudpulse_db: