-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
77 lines (77 loc) · 2.01 KB
/
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
version: "3"
services:
service-discovery:
image: "serhiibabanov/service-discovery:latest"
container_name: "service-discovery"
ports:
- "8761:8761"
restart: on-failure
networks:
- pottery_store
backend-gateway:
image: "serhiibabanov/backend-gateway:latest"
container_name: "backend-gateway"
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://service-discovery:8761/eureka
ports:
- "8080:8080"
restart: on-failure
depends_on:
- service-discovery
networks:
- pottery_store
service-products:
image: "serhiibabanov/service-products:latest"
container_name: "service-products"
environment:
- DATABASE_URL=jdbc:postgresql://database:5432/potterystore
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://service-discovery:8761/eureka
ports:
- "8081:8081"
depends_on:
- database
- service-discovery
restart: on-failure
networks:
- pottery_store
service-subscribe:
image: "serhiibabanov/service-subscribe:latest"
container_name: "service-subscribe"
environment:
- DATABASE_URL=jdbc:postgresql://database:5432/potterystore
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://service-discovery:8761/eureka
ports:
- "8083:8083"
depends_on:
- database
- service-discovery
restart: on-failure
networks:
- pottery_store
database:
container_name: "database"
build:
context: ./database-image
dockerfile: "Dockerfile"
environment:
- POSTGRES_USER=postgress
- POSTGRES_PASSWORD=postgress
- POSTGRES_DB=potterystore
ports:
- "5432:5432"
restart: on-failure
networks:
- pottery_store
docs:
image: "serhiibabanov/docs:latest"
container_name: "docs"
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://service-discovery:8761/eureka
ports:
- "8082:8082"
depends_on:
- service-products
networks:
- pottery_store
networks:
pottery_store: