-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.29 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
53
54
55
56
57
58
59
60
version: '3'
services:
temporal:
image: ianthpun/temporalite
ports:
- 7233:7233
- 8233:8233
entrypoint: ["/temporalite", "start", "-f", "temporalite.db", "-n", "default", "--ip", "0.0.0.0"]
postgres:
image: "postgres"
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=root
- POSTGRES_DB=customer
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 2s
retries: 5
customer-worker:
image: "customer-worker"
build:
context: "."
dockerfile: "internal/customer/Dockerfile.worker"
depends_on:
postgres:
condition: service_healthy
temporal:
condition: service_started
customer-service:
image: "customer-service"
build:
context: "."
dockerfile: internal/customer/Dockerfile.server
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
temporal:
condition: service_started
customer-worker:
condition: service_started
grpc-gateway:
image: "grpc-gateway"
build:
context: "."
dockerfile: proxy/Dockerfile
ports:
- "8081:8081"
depends_on:
customer-service:
condition: service_started