mirror of
https://github.com/grassrootseconomics/eth-tracker.git
synced 2026-05-16 10:01:46 +02:00
dev: add improved example, change db directory
This commit is contained in:
9
dev/docker-compose.nats.yaml
Normal file
9
dev/docker-compose.nats.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
nats:
|
||||
image: nats:2
|
||||
restart: unless-stopped
|
||||
command: -js -sd /tmp/nats/data -m 8222
|
||||
ports:
|
||||
- 0.0.0.0:4222:4222
|
||||
- 0.0.0.0:8222:8222
|
||||
|
||||
@@ -2,7 +2,27 @@ services:
|
||||
nats:
|
||||
image: nats:2
|
||||
restart: unless-stopped
|
||||
command: -js -sd /tmp/nats/data -m 8222
|
||||
command: -js -sd /nats/data -m 8222
|
||||
ports:
|
||||
- 0.0.0.0:4222:4222
|
||||
- 0.0.0.0:8222:8222
|
||||
- 127.0.0.1:4222:4222
|
||||
- 127.0.0.1:8222:8222
|
||||
volumes:
|
||||
- celo-tracker-nats:/nats/data
|
||||
celo-tracker:
|
||||
image: celo-tracker:latest
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- nats
|
||||
environment:
|
||||
- DEV=true
|
||||
- TRACKER_JETSTREAM__ENDPOINT=nats://nats:4222
|
||||
ports:
|
||||
- 127.0.0.1:5001:5001
|
||||
volumes:
|
||||
- celo-tracker-db:/service/db
|
||||
|
||||
volumes:
|
||||
celo-tracker-nats:
|
||||
driver: local
|
||||
celo-tracker-db:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user