-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-mssql.yml
executable file
·92 lines (86 loc) · 2.7 KB
/
docker-compose-mssql.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
version: '3'
services:
order-service:
build:
context: ./order-service/
args:
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION}
ports:
- "8081:8080"
depends_on:
- mssql
- kafka
- zookeeper
- cdc-service
environment:
EVENTUATEDATABASE: mssql
QUARKUS_DATASOURCE_USERNAME: sa
QUARKUS_DATASOURCE_PASSWORD: Eventuate123!
QUARKUS_DATASOURCE_JDBC_URL: jdbc:sqlserver://mssql:1433;databaseName=eventuate
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:29092
customer-service:
build:
context: ./customer-service/
args:
baseImageVersion: ${EVENTUATE_JAVA_BASE_IMAGE_VERSION}
ports:
- "8082:8080"
depends_on:
- mssql
- kafka
- zookeeper
- cdc-service
environment:
EVENTUATEDATABASE: mssql
QUARKUS_DATASOURCE_USERNAME: sa
QUARKUS_DATASOURCE_PASSWORD: Eventuate123!
QUARKUS_DATASOURCE_JDBC_URL: jdbc:sqlserver://mssql:1433;databaseName=eventuate
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:29092
zookeeper:
image: eventuateio/eventuate-zookeeper:$EVENTUATE_COMMON_VERSION
ports:
- 2181:2181
environment:
ZOOKEEPER_CLIENT_PORT: 2181
KAFKA_HEAP_OPTS: -Xmx64m
kafka:
image: "eventuateio/eventuate-kafka:$EVENTUATE_MESSAGING_KAFKA_IMAGE_VERSION"
ports:
- 9092:9092
- 29092:29092
depends_on:
- zookeeper
environment:
KAFKA_LISTENERS: LC://kafka:29092,LX://kafka:9092
KAFKA_ADVERTISED_LISTENERS: LC://kafka:29092,LX://${DOCKER_HOST_IP:-localhost}:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LC:PLAINTEXT,LX:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LC
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_HEAP_OPTS: -Xmx192m
mssql:
image: eventuateio/eventuate-tram-sagas-mssql:$EVENTUATE_SAGA_VERSION
ports:
- 1433:1433
environment:
SA_PASSWORD: Eventuate123!
ACCEPT_EULA: Y
cdc-service:
image: eventuateio/eventuate-cdc-service:$EVENTUATE_CDC_VERSION
ports:
- "8099:8080"
depends_on:
- mssql
- kafka
- zookeeper
environment:
SPRING_DATASOURCE_URL: jdbc:sqlserver://mssql:1433;databaseName=eventuate
SPRING_DATASOURCE_USERNAME: sa
SPRING_DATASOURCE_PASSWORD: Eventuate123!
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.microsoft.sqlserver.jdbc.SQLServerDriver
EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS: kafka:29092
EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING: zookeeper:2181
EVENTUATELOCAL_CDC_READER_NAME: MsSqlReader
EVENTUATE_OUTBOX_ID: 1
SPRING_PROFILES_ACTIVE: mssql,EventuatePolling
JAVA_OPTS: -Xmx64m