2017-02-24 13:00:37 +01:00

27 lines
1.1 KiB
YAML

version: '2'
services:
eventstore:
image: eventstore/eventstore
entrypoint: /bin/bash
command: ['-c', 'grep -q -F "IntIpAdvertiseAs: $$(hostname --ip-address)" /etc/eventstore/eventstore.conf || echo "IntIpAdvertiseAs: $$(hostname --ip-address)" >> /etc/eventstore/eventstore.conf && grep -q -F "ExtIpAdvertiseAs: $$(hostname --ip-address)" /etc/eventstore/eventstore.conf || echo "ExtIpAdvertiseAs: $$(hostname --ip-address)" >> /etc/eventstore/eventstore.conf && /entrypoint.sh']
environment:
- EVENTSTORE_CLUSTER_SIZE=3
- EVENTSTORE_CLUSTER_DNS=eventstore
- EVENTSTORE_CLUSTER_GOSSIP_PORT=2112
eventstore-lb:
image: rancher/lb-service-haproxy:v0.5.9
ports:
- ${load_balancer_external_http_port}:2113/tcp
- ${load_balancer_external_tcp_port}:1113/tcp
labels:
io.rancher.container.agent.role: environmentAdmin
io.rancher.container.create_agent: 'true'
io.rancher.scheduler.global: 'true'
#more /etc/eventstore/eventstore.conf
#more /var/log/eventstore/20*/*.log
#rm more /var/log/eventstore/20*/*.log