-
Notifications
You must be signed in to change notification settings - Fork 2
/
scrp-docker-compose.yml
69 lines (65 loc) · 1.71 KB
/
scrp-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
version: "3.7"
services:
scrp:
image: sfproductlabs/scrp:latest
# command: tail -F test
networks:
- forenet
deploy:
mode: global
endpoint_mode: dnsrr
placement:
constraints:
- node.role != manager
- node.labels.cassandra != true
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: any
logging:
options:
max-size: "100k"
environment:
- SWARM_NODE={{.Node.Hostname}}
- CASSANDRAS=scrp_cassandra
- CASSANDRA_RETRY=false
- CASSANDRA_VERIFY_HOSTS=false
- CASSANDRA_ROOTCA=/app/scrp/.setup/keys/rootCa.crt
- CASSANDRA_CLIENT_CERT=/app/scrp/.setup/keys/cassandra-client.crt
- CASSANDRA_CLIENT_KEY=/app/scrp/.setup/keys/cassandra-client.key
- BACKEND_CERT=/app/scrp/.setup/keys/scrp_scrp.cert
- BACKEND_KEY=/app/scrp/.setup/keys/scrp_scrp.key
- CLUSTER_ENDPOINT=scrp_scrp:50551
cassandra:
image: sfproductlabs/elassandra:latest
networks:
- forenet
deploy:
# resources:
# limits:
# cpus: '4'
# memory: 15G
# reservations:
# cpus: '4'
# memory: 3.8G
replicas: 1
endpoint_mode: dnsrr
placement:
constraints:
- node.labels.cassandra == true
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: any
secrets:
- schema.1.cql
command: >
bash -c "((sleep 90s && cqlsh --ssl -f /run/secrets/schema.1.cql &) && (/docker-entrypoint.sh cassandra -f))"
secrets:
schema.1.cql:
external: true
networks:
forenet:
external: true