-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
52 lines (50 loc) · 1.36 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
51
52
services:
frontend:
profiles: ["frontend"]
build:
context: ./frontend
dockerfile: ${DOCKERFILE:-Dockerfile}
environment:
- NEXT_PUBLIC_API_BASE_URL=https://ikapiar.my.id # Adjust this URL according to your API service
container_name: ikapiar-frontend
ports:
- "3000:3000" # Map local port 3000 to NGINX's port 80
networks:
- ikapiar-network
develop:
watch:
- path: ./frontend
target: /app
action: sync+restart
backend:
profiles: ["backend"]
build:
context: ./backend
dockerfile: Dockerfile
container_name: ikapiar-backend
ports:
- "4000:4000"
networks:
- ikapiar-network
database:
profiles:
- database
- backend
image: postgres:17-alpine
container_name: postgres-container
hostname: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- ikapiar-db:/var/lib/postgresql/data
networks:
- ikapiar-network
volumes:
ikapiar-db:
networks:
ikapiar-network: