-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 850 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (34 loc) · 850 Bytes
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
version: "3.9"
services:
#this db listen to port 5432 wtihin the kinma-project_default Networks
#It's affect any other postgres db service which running on local 5432 port
db:
image: postgres:14-alpine
restart: always
environment:
- POSTGRES_DB=kinma_db
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
- TZ=Asia/Taipei
ports:
- "5432:5432"
api:
build:
context: .
dockerfile: ./dockerfile/Dockerfile.api
restart: always
environment:
- DB_SOURCE=postgresql://root:password@db:5432/kinma_db?sslmode=disable
- TZ=Asia/Taipei
ports:
- "8081:8081"
kinma-ui:
build:
context: .
dockerfile: ./dockerfile/Dockerfile.ui
environment:
- TZ=Asia/Taipei
ports:
- "8000:80"
depends_on:
- api