version: "3" services: rqlite: image: rqlite/rqlite:4.0.2 volumes: - rqlite:/rqlite/file command: -on-disk -http-adv-addr rqlite:4001 nats: image: nats:1.0.2 entrypoint: "/gnatsd -DV" # uncomment for debugging message queue issues expose: - "4222" ports: - "8222:8222" worker: image: xena/mercy:$GIT_COMMIT environment: NATS_URL: nats://nats:4222 command: /go/bin/worker depends_on: - nats kronos: image: xena/mercy:$GIT_COMMIT depends_on: - nats - rqlite environment: NATS_URL: nats://nats:4222 DATABASE_URL: http://rqlite:4001 command: /go/bin/kronos mercyd: image: xena/mercy:$GIT_COMMIT environment: NATS_URL: nats://nats:4222 DATABASE_URL: http://rqlite:4001 command: /go/bin/mercyd ports: - "42069:42069" #- "433:433" # uncomment for production, used for SSL certs via Let's Encrypt depends_on: - nats - rqlite volumes: rqlite: