-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 926 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
services:
db:
container_name: postgres
image: postgres:15.4
environment:
POSTGRES_USER: amigoscode
POSTGRES_PASSWORD: password
PGDATA: /data/postgres
volumes:
- db:/data/postgres
ports:
- "5332:5432"
networks:
- db
restart: unless-stopped
amigoscode-api:
container_name: amigoscode-api
image: pg47101/amigoscode-api
environment:
SPRING_DATASOURCE_URL: "jdbc:postgresql://db:5432/customer"
ports:
- "8088:8080"
networks:
- db
depends_on:
- db
restart: unless-stopped
amigoscode-react:
container_name: amigoscode-react
image: pg47101/amigoscode-react
build:
context: frontend/react
args:
api_base_url: http://localhost:8088
ports:
- "3000:5173"
depends_on:
- amigoscode-api
restart: unless-stopped
networks:
db:
driver: bridge
volumes:
db: