diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index f8860cb..b2f2701 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -14,7 +14,20 @@ services: interval: 5s timeout: 5s retries: 10 - + + nats: + image: mirror.gcr.io/nats:2-alpine + restart: unless-stopped + command: ["-js", "-m", "8222"] + ports: + - "4222:4222" # client connections + # "8222:8222" # monitoring HTTP + healthcheck: + test: ["CMD", "wget", "--spider", "-q", "http://localhost:8222/healthz"] + interval: 5s + timeout: 5s + retries: 10 + app: build: . container_name: fb-app