-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
121 lines (114 loc) · 3.71 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: "3"
services:
trellis:
image: gregjan/drastic-trellis-cassandra:latest
environment:
QUARKUS_LOG_LEVEL: INFO
TRELLIS_CASSANDRA_CONTACT_ADDRESS: cassandra-1
TRELLIS_CASSANDRA_CONTACT_PORT: 9042
TRELLIS_CASSANDRA_METRICS_DIR: "/metrics/{{.Task.Name}}"
MP_JWT_VERIFY_PUBLICKEY_LOCATION: "https://www.trellisldp.org/tests/jwks.json"
QUARKUS_PROFILE: "dev"
TRELLIS_HTTP_WEAK_ETAG: "false"
TRELLIS_HTTP_MEMENTO_HEADER_DATES: "false"
TRELLIS_HTTP_PRECONDITION_REQUIRED: "true"
TRELLIS_JDBC_LDP_TYPE: "true"
KAFKA_BOOTSTRAP_SERVERS: "kafka:9092"
QUARKUS_HTTP_CORS: "true"
#QUARKUS_HTTP_CORS_ORIGINS: "http://0.0.0.0,http://localhost"
QUARKUS_HTTP_CORS_METHODS: "HEAD,OPTIONS,PATCH,GET,PUT,POST,DELETE"
QUARKUS_HTTP_CORS_EXPOSED_HEADERS: "Content-Type,Link,Memento-Datetime,Preference-Applied,Location,Accept-Patch,Accept-Post,Accept-Ranges,ETag,Vary,WWW-Authenticate"
QUARKUS_HTTP_CORS_HEADERS: "Content-Type,Link,Accept,Accept-Datetime,Authorization,Prefer,Slug"
QUARKUS_HTTP_CORS_ACCESS_CONTROL_ALLOW_CREDENTIALS: "true"
QUARKUS_HTTP_CORS_ACCESS_CONTROL_MAX_AGE: "24H"
QUARKUS_HTTP_LIMITS_MAX_BODY_SIZE: "10G"
ports:
- 80:8080
networks:
- drastic
depends_on:
- cassandra-1
- kafka
volumes:
- ./.trellis_data:/opt/trellis/data
- ./.trellis_log:/opt/trellis/log
# Please see note below about the ./etc directory
# - /local/trellis/etc:/opt/trellis/etc
cassandra-1:
image: cassandra
environment:
CASSANDRA_BROADCAST_ADDRESS: cassandra-1
CASSANDRA_LISTEN_ADDRESS: tasks.cassandra-1
ports:
- 9042:9042
- 7000
networks:
drastic:
cassandra-2:
image: cassandra
environment:
CASSANDRA_BROADCAST_ADDRESS: cassandra-2
CASSANDRA_LISTEN_ADDRESS: tasks.cassandra-2
CASSANDRA_SEEDS: cassandra-1
depends_on:
- cassandra-1
ports:
- 7000
networks:
drastic:
cassandra-init:
image: cassandra
depends_on:
- cassandra-1
- cassandra-2
deploy:
restart_policy:
condition: on-failure
delay: 10s
volumes:
- ./trellis.cql:/trellis.cql
command: cqlsh cassandra-1 -f /trellis.cql
networks:
- drastic
zookeeper:
image: zookeeper:3.4.9
hostname: zookeeper
ports:
- 2181:2181
networks:
drastic:
kafka:
image: confluentinc/cp-kafka:latest
hostname: kafka
depends_on:
- zookeeper
ports:
- 9092:9092
- 9093:9093
networks:
drastic:
environment:
KAFKA_LISTENERS: INT://kafka:9092,EXT://localhost:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INT:PLAINTEXT,EXT:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INT
KAFKA_ADVERTISED_LISTENERS: INT://kafka:9092,EXT://192.168.132.125:9093
#KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_INTERNAL://kafka:9092,LISTENER_DOCKER_EXTERNAL://${DOCKER_HOST_IP:-127.0.0.1}:19092
#KAFKA_LISTENERS: LISTENER_DOCKER_INTERNAL://kafka:9092,LISTENER_DOCKER_EXTERNAL://${DOCKER_HOST_IP:-127.0.0.1}:19092
#KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL:PLAINTEXT
#KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_DOCKER_INTERNAL
#KAFKA_ADVERTISED_HOST_NAME: kafka
#KAFKA_ADVERTISED_PORT: 9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_BROKER_ID: 1
KAFKA_CREATE_TOPICS: "test:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
kafkacat:
image: confluentinc/cp-kafkacat
command: sleep infinity
networks:
drastic:
networks:
drastic:
driver: overlay