Last active
December 31, 2023 15:43
-
-
Save arsalanses/2cd4199127ad7654663cbcf5fc59f593 to your computer and use it in GitHub Desktop.
nats docker compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| nats: | |
| image: docker.io/bitnami/nats:2 | |
| environment: | |
| - "NATS_ENABLE_AUTH=yes" | |
| - "NATS_USERNAME=nats" | |
| - "NATS_PASSWORD=my_password" | |
| ports: | |
| # NATS_CLIENT_PORT_NUMBER | |
| - "0.0.0.0:4222:4222" | |
| # NATS_CLUSTER_PORT_NUMBER | |
| - "127.0.0.1:6222:6222" | |
| # NATS_HTTP_PORT_NUMBER | |
| - "127.0.0.1:8222:8222" | |
| nats-exporter: | |
| image: docker.io/bitnami/nats-exporter:0 | |
| command: -varz "http://nats:5555" | |
| ports: | |
| - "7777:7777" | |
| natscli: | |
| image: docker.io/bitnami/natscli:0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment