-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
53 lines (50 loc) · 1.08 KB
/
Copy pathcompose.yml
File metadata and controls
53 lines (50 loc) · 1.08 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
services:
# PostgreSQL Database
db:
image: postgres:16
container_name: socialsphere-db
environment:
POSTGRES_DB: socialspheredb
POSTGRES_USER: spring
POSTGRES_PASSWORD: spring
ports:
- "5432:5432"
networks:
- socialsphere-network
# Spring Boot Backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: socialsphere-backend
ports:
- "8080:8080"
environment:
DB_URL: jdbc:postgresql://db:5432/socialspheredb
DB_USER: spring
DB_PASSWORD: spring
depends_on:
- db
networks:
- socialsphere-network
# React Frontend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: socialsphere-frontend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- NODE_ENV=development
- VITE_API_BASE_URL=http://localhost:8080
depends_on:
- backend
networks:
- socialsphere-network
networks:
socialsphere-network:
driver: bridge