-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.01 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
services:
db:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: shubhamwagh
POSTGRES_PASSWORD: password
PGDATA: /data/postgres
volumes:
- db:/data/postgres
ports:
- "5432:5432"
networks:
- db
restart: unless-stopped
userinventory:
container_name: userinventory
image: shubhamwagh2544/userinventory
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/customer
SPRING_DATASOURCE_USERNAME: shubhamwagh
SPRING_DATASOURCE_PASSWORD: password
ports:
- "8088:8080"
networks:
- db
depends_on:
- db
restart: unless-stopped
userinventory-react:
container_name: userinventory-react
image: shubhamwagh2544/userinventory-react
build:
context: react/react-frontend
args:
api_base_url: http://localhost:8088
ports:
- "3000:5173"
depends_on:
- userinventory
restart: unless-stopped
networks:
db:
driver: bridge
volumes:
db: