Files
asepharyana-hub/infra/compose/nats.yml
T

26 lines
497 B
YAML
Raw Normal View History

services:
nats:
container_name: nats
image: nats:latest
restart: always
networks:
app-shared-net:
aliases:
- nats
ports:
- '4222:4222' # client connections
- '8222:8222' # HTTP monitor / health
command:
- '--config=/etc/nats/nats.conf'
volumes:
- nats_data:/data
- ../../infra/nats/nats.conf:/etc/nats/nats.conf:ro
volumes:
nats_data:
networks:
app-shared-net:
name: app-shared-net
external: true