2017-08-25 08:22:58 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
2017-08-25 14:46:50 +00:00
|
|
|
# Persistence layers and dev tools
|
|
|
|
|
|
|
|
# http://127.0.0.1:9411
|
2017-08-25 08:22:58 +00:00
|
|
|
zipkin:
|
|
|
|
image: openzipkin/zipkin
|
|
|
|
environment:
|
|
|
|
STORAGE_TYPE: mem
|
|
|
|
ports:
|
|
|
|
- "9411:9411"
|
|
|
|
|
2017-08-29 21:05:25 +00:00
|
|
|
# nats message queue
|
|
|
|
nats:
|
|
|
|
image: nats
|
|
|
|
ports:
|
|
|
|
- "4222:4222"
|
2017-08-25 14:46:50 +00:00
|
|
|
|
|
|
|
# database
|
|
|
|
rqlite:
|
|
|
|
restart: always
|
|
|
|
image: rqlite/rqlite:4.0.2
|
|
|
|
volumes:
|
|
|
|
- rqlite:/rqlite/file
|
2017-08-29 21:05:25 +00:00
|
|
|
ports:
|
|
|
|
- "4001:4001"
|
2017-08-25 14:46:50 +00:00
|
|
|
command: -on-disk -http-adv-addr rqlite:4001
|
|
|
|
|
|
|
|
# the bot and event sourcing ingress
|
2017-08-25 08:22:58 +00:00
|
|
|
vyvanse:
|
2017-08-29 16:50:30 +00:00
|
|
|
restart: always
|
2017-08-25 08:22:58 +00:00
|
|
|
image: xena/vyvanse
|
|
|
|
env_file: ./.env
|
|
|
|
depends_on:
|
|
|
|
- zipkin
|
2017-08-29 21:05:25 +00:00
|
|
|
- nats
|
2017-08-25 14:46:50 +00:00
|
|
|
- rqlite
|
|
|
|
|
2017-08-29 20:30:43 +00:00
|
|
|
logworker:
|
|
|
|
restart: always
|
|
|
|
image: xena/vyvanse
|
|
|
|
env_file: ./.env
|
|
|
|
depends_on:
|
|
|
|
- zipkin
|
2017-08-29 21:05:25 +00:00
|
|
|
- nats
|
2017-08-29 20:30:43 +00:00
|
|
|
- rqlite
|
|
|
|
command: /root/go/bin/logworker
|
|
|
|
|
2017-08-25 14:46:50 +00:00
|
|
|
volumes:
|
|
|
|
rqlite:
|