-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
95 lines (89 loc) · 2.35 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
version: '3.8'
services:
postgres:
image: postgres:latest
container_name: postgres-latest
restart: always
ports:
- "5435:5432"
environment:
POSTGRES_DB: transformation
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: trust
# volumes:
# - ./dev/data:/var/lib/postgresql/data
sonar:
container_name: sonar
image: sonarqube:lts-community
ports:
- "9000:9000"
zookeeper:
container_name: zookeeper
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
container_name: kafka
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
ports:
- "9092:9092"
- "29092:29092"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
ALLOW_PLAINTEXT_LISTENER: "yes"
KAFKA_LISTENERS: PLAINTEXT://:9092,PLAINTEXT_HOST://0.0.0.0:29092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
eureka-server:
container_name: eureka-server
image: eureka-server:latest
ports:
- "8761:8761"
environment:
PORT: 8761
# TODO: update admin-server
admin-server:
container_name: admin-server
image: admin-server:latest
depends_on:
- eureka-server
ports:
- "8000:8000"
environment:
PORT: 8000
EUREKA-SERVER: http://eureka-server:8761/eureka
elasticsearch-server:
container_name: elasticsearch-server
image: elasticsearch:7.12.1
ports:
- "9200:9200"
environment:
discovery.type: single-node
transformation:
container_name: transformation
image: transformation:latest
depends_on:
- postgres
- zookeeper
- kafka
- eureka-server
- admin-server
- elasticsearch-server
ports:
- "8025:8025"
environment:
PORT: 8025
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: transformation
DB_USER: postgres
DB_PASSWORD: postgres
KAFKA-SERVER: kafka:9092
EUREKA-SERVER: http://eureka-server:8761/eureka
ELASTICSEARCH-SERVER: elasticsearch-server:9200
spring.datasource.hikari.maximum-pool-size: 10