-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1 KB
/
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:
db:
build:
context: ./java/database
dockerfile: DatabaseDockerfile
environment:
- POSTGRES_DB=final_capstone
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres1
ports:
- "5433:5432" # Map to 5433 so it doesn't conflict with your current psql server
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- capstone-network
java-springboot:
build:
context: ./java
dockerfile: JavaDockerfile
ports:
- "9000:9000"
environment:
- DB_HOST=db
- DB_PORT=5432
networks:
- capstone-network
vue-web:
build:
context: ./vue
dockerfile: VueDockerfile
volumes:
- vue-node_modules:/srv/app/node_modules
ports:
- "5173:5173"
environment:
- NODE_ENV=development
init: true
stop_grace_period: 1s
networks:
- capstone-network
volumes:
postgres-data:
vue-node_modules:
networks:
capstone-network:
driver: bridge