-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.15 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
services:
db:
container_name: postgres
image: postgres:15.4
environment:
POSTGRES_USER: shreyas
POSTGRES_PASSWORD: password
PGDATA: /data/postgres
volumes:
- db:/data/postgres
ports:
- "5432:5432"
networks:
- db
restart: unless-stopped
shreyas-full-stack-professional-api:
container_name: shreyas-full-stack-professional-api-container
image: shreyas957/shreyas-full-stack-professional-api
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/customer
ports:
- "8088:8080"
networks:
- db
depends_on:
- db
restart: unless-stopped
# command:
# - --spring.datasource.url=jdbc:postgresql://db:5432/customer
shreyas-full-stack-professional-react:
container_name: shreyas-full-stack-professional-react-container
image: shreyas957/shreyas-full-stack-professional-react
build:
context: frontend/react
args:
api_base_url: http://localhost:8088
ports:
- "3000:5173"
depends_on:
- shreyas-full-stack-professional-api
restart: unless-stopped
networks:
db:
driver: bridge
volumes:
db: