-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (51 loc) · 935 Bytes
/
docker-compose.yaml
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
# docker-compose.yml
version: "3.7"
networks:
app-tier:
driver: bridge
services:
postgres:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
command: postgres -c log_statement=all
ports:
- '5432:5432'
volumes:
- library-db:/var/lib/postgresql/data
networks:
- app-tier
zipkin:
image: openzipkin/zipkin
ports:
- 9411:9411
networks:
- app-tier
checkout:
build:
context: checkout
depends_on:
- bookservice
- zipkin
ports:
- '3001:3001'
networks:
- app-tier
bookservice:
build:
context: .
environment:
DB_SCHEMA: postgres
DB_USER: postgres
DB_PASSWORD: postgres
DB_HOST: postgres
depends_on:
- postgres
- zipkin
ports:
- '3000:3000'
networks:
- app-tier
volumes:
library-db: