-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
116 lines (107 loc) · 3.44 KB
/
docker-compose.yml
File metadata and controls
116 lines (107 loc) · 3.44 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: '3.8'
services:
orchestra-section:
image: section-img
build:
context: ./orchestra-section
container_name: orchestra-section
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: "http://orchestra-eureka:8080/eureka"
SPRING_DATASOURCE_URL: "jdbc:postgresql://section-db:5432/section-db"
SPRING_DATASOURCE_DRIVERCLASSNAME: "org.postgresql.Driver"
SPRING_DATASOURCE_USERNAME: "admin"
SPRING_DATASOURCE_PASSWORD: "password"
SPRING_JPA_DATABASE_PLATFORM: "org.hibernate.dialect.PostgreSQLDialect"
EUREKA_INSTANCE_INSTANCE_ID: "1"
SERVER_PORT: "8080"
depends_on:
- "section-db"
- orchestra-eureka
orchestra-instrument-1:
image: instrument-img
build:
context: ./orchestra-instrument
container_name: orchestra-instrument1
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://instrument-db:5432/instrument-db
- SPRING_DATASOURCE_USERNAME=admin
- SPRING_DATASOURCE_PASSWORD=password
- EUREKA_INSTANCE_INSTANCE_ID=1
- SPRING_DATASOURCE_DRIVERCLASSNAME=org.postgresql.Driver
- SPRING_JPA_DATABASE_PLATFORM=org.hibernate.dialect.PostgreSQLDialect
- SERVER_PORT=8080
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://orchestra-eureka:8080/eureka
depends_on:
- instrument-db
- orchestra-eureka
orchestra-instrument-2:
image: instrument-img
build:
context: ./orchestra-instrument
container_name: orchestra-instrument2
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://instrument-db:5432/instrument-db
- SPRING_DATASOURCE_USERNAME=admin
- SPRING_DATASOURCE_PASSWORD=password
- EUREKA_INSTANCE_INSTANCE_ID=2
- SPRING_DATASOURCE_DRIVERCLASSNAME=org.postgresql.Driver
- SPRING_JPA_DATABASE_PLATFORM=org.hibernate.dialect.PostgreSQLDialect
- SERVER_PORT=8080
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://orchestra-eureka:8080/eureka
depends_on:
- instrument-db
- orchestra-eureka
orchestra-ng:
container_name: orchestra-ng
image: angular-img
build:
context: ./orchestra-ng
ports:
- "80:80"
environment:
- ORCHESTRA_INSTRUMENT_URL=orchestra-instrument
- ORCHESTRA_SECTION_URL=orchestra-section
- INSTRUMENT_PORT=8080
- SECTION_PORT=8080
- SERVER_PORT=80
- API_URL=http://orchestra-gateway:8080/api
section-db:
container_name: section-db
image: 'postgres:13.1-alpine'
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_DB=section-db
volumes:
- section-db-data:/var/lib/postgresql/data
instrument-db:
container_name: instrument-db
image: 'postgres:13.1-alpine'
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_DB=instrument-db
volumes:
- instrument-db-data:/var/lib/postgresql/data
orchestra-eureka:
image: eureka-img
build:
context: ./orchestra-eureka
container_name: orchestra-eureka
ports:
- "8090:8080"
orchestra-gateway:
image: gateway-img
build:
context: ./orchestra-gateway
container_name: orchestra-gateway
hostname: orchestra-gateway
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: "http://orchestra-eureka:8080/eureka"
ORCHESTRA_GATEWAY_HOST: "orchestra-gateway:8080"
SERVER_PORT: "8080"
ports:
- "8080:8080"
volumes:
section-db-data:
instrument-db-data: