-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (46 loc) · 993 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
48
49
50
services:
db:
container_name: ASO-DB
image: postgres:16.2
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PGDATA: /data/postgres
volumes:
- db:/data/postgres
- ./init.sql:/docker-entrypoint-initdb.d/init.sql # Mount the initialization script
ports:
- "5332:5432"
networks:
- db
restart: unless-stopped
spring-boot-app:
container_name: ASO-API
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8081:8081"
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- .env:/app/.env
- ~/.aws:/root/.aws # Mount the AWS credentials file
networks:
- db
depends_on:
- db
react-app:
container_name: REACT-APP
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
- spring-boot-app
networks:
db:
driver: bridge
volumes:
db: