-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 883 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 883 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
42
43
44
45
46
47
services:
backend:
build:
context: ./Backend
dockerfile: Dockerfile
ports:
- "6969:6969"
depends_on:
- db
environment:
- DATABASE_HOST=db
- DATABASE_USER=postgres
- DATABASE_PASSWORD=12345678
- DATABASE_NAME=SwiftRoute
- DATABASE_PORT=5432
networks:
- app-network
frontend:
build:
context: ./Frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
networks:
- app-network
db:
image: postgres:latest
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=12345678
- POSTGRES_DB=SwiftRoute
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
- ./Database/DB.sql:/docker-entrypoint-initdb.d/db.sql
networks:
- app-network
volumes:
db-data:
networks:
app-network:
driver: bridge