Files
nats-scheduler/docker-compose.yml
2026-04-08 13:35:57 +03:00

50 lines
1.7 KiB
YAML

services:
nats-registration-listener-even:
build:
context: .
dockerfile: Dockerfile
image: nats-registration-listener:latest
network_mode: host
working_dir: /opt/containers/nats-registration-listener/app
entrypoint: ["/usr/bin/tini","--","/bin/bash","-lc","/usr/local/bin/nats-registration-entrypoint"]
restart: unless-stopped
tty: true
stdin_open: true
environment:
EVENT_LOG_PATH: "/opt/containers/nats-registration-listener/logs/registration_events_even.jsonl"
EVENODD: "even"
env_file:
- .env
volumes:
- ./data:/opt/containers/nats-registration-listener/data:rw
- ./logs:/opt/containers/nats-registration-listener/logs:rw
healthcheck:
test: ["CMD-SHELL", "/usr/local/bin/nats-registration-healthcheck"]
interval: 30s
timeout: 10s
retries: 5
nats-registration-listener-odd:
build:
context: .
dockerfile: Dockerfile
image: nats-registration-listener:latest
network_mode: host
working_dir: /opt/containers/nats-registration-listener/app
entrypoint: ["/usr/bin/tini","--","/bin/bash","-lc","/usr/local/bin/nats-registration-entrypoint"]
restart: unless-stopped
tty: true
stdin_open: true
environment:
EVENT_LOG_PATH: "/opt/containers/nats-registration-listener/logs/registration_events_odd.jsonl"
EVENODD: "odd"
env_file:
- .env
volumes:
- ./data:/opt/containers/nats-registration-listener/data:rw
- ./logs:/opt/containers/nats-registration-listener/logs:rw
healthcheck:
test: ["CMD-SHELL", "/usr/local/bin/nats-registration-healthcheck"]
interval: 30s
timeout: 10s
retries: 5