-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
59 lines (53 loc) · 1.04 KB
/
docker-compose.yaml
File metadata and controls
59 lines (53 loc) · 1.04 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
version: "3.8"
services:
db:
image: postgres:15
container_name: postgres-db
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: customerdb
ports:
- "5432:5432"
networks:
- app-network
volumes:
- db-data:/var/lib/postgresql/data
node-backend:
build:
context: ./backend
container_name: node-backend
environment:
DATABASE_URL: postgres://admin:admin@db:5432/customerdb
ports:
- "3000:3000"
depends_on:
- db
networks:
- app-network
frontend:
build:
context: ./frontend
container_name: react-frontend
ports:
- "8080:80"
depends_on:
- node-backend
networks:
- app-network
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "delteaching@del.tech"
PGADMIN_DEFAULT_PASSWORD: "DelTeaching2025!"
ports:
- "5050:80"
depends_on:
- db
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
db-data: