-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
61 lines (61 loc) · 1.48 KB
/
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
58
59
60
61
version: '3'
services:
test-db:
container_name: test-db
image: postgres:12-alpine
environment:
- POSTGRES_PASSWORD=test
- POSTGRES_USER=test
- POSTGRES_DB=test
ports:
- "5433:5433"
volumes:
- ./backups:/home/backups
command: -c wal_level=logical -p 5433
restart: always
eureka:
build:
context: ./eureka
dockerfile: Dockerfile
environment:
- server_port=8761
bm-controller:
container_name: bm-controller
build:
context: ./bm-controller
dockerfile: Dockerfile
environment:
- server_port=8080
- spring_datasource_url=jdbc:postgresql://test-db:5433/test
- eureka_client_serviceUrl_defaultZone=http://eureka:8761/eureka/
- POSTGRES_DB=test
ports:
- "8080:8080"
restart: always
depends_on:
- eureka
bm-agent-1:
build:
context: ./bm-agent
dockerfile: Dockerfile
environment:
- controller_url=http://bm-controller:8080/api/agent/register
- eureka_client_serviceUrl_defaultZone=http://eureka:8761/eureka/
ports:
- "8081:8081"
restart: always
depends_on:
- eureka
- bm-controller
bm-agent-2:
build:
context: ./bm-agent
dockerfile: Dockerfile
environment:
- controller_url=http://bm-controller:8080/api/agent/register
- eureka_client_serviceUrl_defaultZone=http://eureka:8761/eureka/
ports:
- "8082:8081"
depends_on:
- eureka
- bm-controller