-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 1020 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
44
45
46
47
48
49
50
version: '3.8'
services:
postgres_db:
build:
context: ./DATABASE
dockerfile: Dockerfile
image: postgres:1.0.0
container_name: postgres_db
environment:
POSTGRES_PASSWORD: fact123
POSTGRES_DB: student_inventory
networks:
- student_registery_network
backend:
build:
context: ./BACKEND
dockerfile: Dockerfile
image: student_register_backend:1.0.0
container_name: student_registery_backend
depends_on:
- postgres_db
environment:
PG_HOST: postgres_db
PG_PASSWORD: fact123
PG_PORT: 5432
HOST: localhost
PORT: 5001
networks:
- student_registery_network
ports:
- "5001:5001"
frontend:
build:
context: ./FRONTEND
image: student_register_frontend:1.0.0
container_name: student_registery_frontend
depends_on:
- backend
networks:
- student_registery_network
ports:
- "8000:8000"
networks:
student_registery_network:
driver: bridge