forked from cyrille-leclerc/my-shopping-cart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (50 loc) · 1.43 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
version: '3'
services:
frontend:
image: 'frontend:1.0-SNAPSHOT'
container_name: frontend
depends_on:
- postgres
- anti-fraud
- checkout
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/compose-postgres
- SPRING_DATASOURCE_USERNAME=compose-postgres
- SPRING_DATASOURCE_PASSWORD=compose-postgres
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- ANTIFRAUDSERVICE.BASEURL=http://anti-fraud:8081
- CHECKOUTSERVICE.GRPCENDPOINT=checkout:50051
- LOGGING_FILE_NAME=application.log
ports:
- "8080:8080"
anti-fraud:
image: 'anti-fraud:1.0-SNAPSHOT'
container_name: anti-fraud
depends_on:
- postgres
environment:
- SERVER_PORT=8081
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/compose-postgres
- SPRING_DATASOURCE_USERNAME=compose-postgres
- SPRING_DATASOURCE_PASSWORD=compose-postgres
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- LOGGING_FILE_NAME=application.log
ports:
- "8081:8081"
checkout:
image: 'checkout-service:1.0-SNAPSHOT'
container_name: checkout
depends_on:
- postgres
environment:
- LOGGING_FILE_NAME=application.log
ports:
- "50051:50051"
postgres:
image: 'postgres:13.1-alpine'
container_name: postgres
environment:
- POSTGRES_USER=compose-postgres
- POSTGRES_PASSWORD=compose-postgres
ports:
- "5432:5432"