-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
102 lines (102 loc) · 2.66 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: '3.7'
services:
controller-server:
container_name: controller_server
image: xzippyzachx/spring_controller:latest
environment:
- USERSERVER_URL=http://user-server
- ITEMSERVER_URL=http://item-server
- AUCTIONSERVER_URL=http://auction-server
- PAYMENTSERVER_URL=http://payment-server
ports:
- "8080:8080"
networks:
- spring-cloud-network
user-server:
container_name: user_server
image: xzippyzachx/spring_user:latest
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://user-postgres:5432/users
ports:
- "8081:8081"
depends_on:
- user-postgres
links:
- user-postgres
networks:
- spring-cloud-network
user-postgres:
container_name: postgres_users
image: xzippyzachx/postgres_users:latest
ports:
- "5432:5432"
networks:
- spring-cloud-network
item-server:
container_name: item_server
image: xzippyzachx/spring_item:latest
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://item-postgres:5432/items
ports:
- "8082:8082"
depends_on:
- item-postgres
links:
- item-postgres
networks:
- spring-cloud-network
item-postgres:
container_name: postgres_items
image: xzippyzachx/postgres_items:latest
ports:
- "5433:5432"
networks:
- spring-cloud-network
auction-server:
container_name: auction_server
image: xzippyzachx/spring_auction:latest
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://auction-postgres:5432/auctions
- CONTROLLERSERVER_URL=http://controller-server
- ITEMSERVER_URL=http://item-server
- USERSERVER_URL=http://user-server
ports:
- "8083:8083"
depends_on:
- auction-postgres
links:
- auction-postgres
networks:
- spring-cloud-network
auction-postgres:
container_name: postgres_auctions
image: xzippyzachx/postgres_auctions:latest
ports:
- "5434:5432"
networks:
- spring-cloud-network
payment-server:
container_name: payment_server
image: xzippyzachx/spring_payment:latest
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://payment-postgres:5432/payments
- AUCTIONSERVER_URL=http://auction-server
- USERSERVER_URL=http://user-server
ports:
- "8084:8084"
depends_on:
- payment-postgres
links:
- payment-postgres
networks:
- spring-cloud-network
payment-postgres:
container_name: postgres_payments
image: xzippyzachx/postgres_payments:latest
ports:
- "5435:5432"
networks:
- spring-cloud-network
networks:
spring-cloud-network:
driver: bridge