Skip to content

Commit

Permalink
fix: barry 2024-08-28 23:30:13
Browse files Browse the repository at this point in the history
  • Loading branch information
kooksee committed Aug 28, 2024
1 parent a8eca3b commit 86e6732
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/data/nats/nats.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
listen: 0.0.0.0:4222
http_port: 8222
authorization: {
user: "admin"
password: "admin_123456"
}

jetstream {
store_dir: /data/jetstream
max_mem: 1G
max_file: 10G
}
16 changes: 16 additions & 0 deletions docs/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
nats:
container_name: nats
image: nats:latest
restart: unless-stopped
env_file: ${PWD}/.env
volumes:
- $PWD/data/nats/nats.conf:/etc/nats/nats.conf
- $PWD/data/nats/jetstream:/data/jetstream
command: "-c /etc/nats/nats.conf"
ports:
- 4222:4222
- 8222:8222
- 6222:6222
extra_hosts:
- "host.docker.internal:host-gateway"

0 comments on commit 86e6732

Please sign in to comment.