initial codes
This commit is contained in:
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
services:
|
||||
nats-registration-listener:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: nats-registration-listener:latest
|
||||
|
||||
# Share host network so 'localhost:4222' talks to NATS on the host (if that's your setup)
|
||||
network_mode: host
|
||||
|
||||
working_dir: /opt/containers/nats-registration-listener/app
|
||||
entrypoint: ["/usr/bin/tini", "--", "/usr/local/bin/nats-registration-entrypoint"]
|
||||
command: ["/opt/containers/nats-registration-listener/app/bin/nats-registration-listener.sh"]
|
||||
|
||||
restart: unless-stopped
|
||||
tty: true
|
||||
stdin_open: true
|
||||
|
||||
# One .env to rule them all
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
volumes:
|
||||
- ./data:/opt/containers/nats-registration-listener/data:rw
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "/usr/local/bin/nats-registration-healthcheck"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
Reference in New Issue
Block a user