-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 813 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (35 loc) · 813 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
37
38
39
services:
postgres:
image: postgres:15
container_name: order-postgres
environment:
POSTGRES_USER: krsna
POSTGRES_PASSWORD: krsna123
POSTGRES_DB: orderdb
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
order-service:
build:
context: .
dockerfile: cmd/order-service/Dockerfile
container_name: order-service
environment:
DATABASE_URL: postgres://krsna:krsna123@postgres:5432/orderdb?sslmode=disable
depends_on:
- postgres
ports:
- "50051:50051"
- "8081:8081"
api-gateway:
build:
context: .
dockerfile: cmd/api-gateway/Dockerfile
container_name: api-gateway
depends_on:
- order-service
ports:
- "8080:8080"
volumes:
postgres_data: