1335
This commit is contained in:
31
docker-compose-old.yml
Normal file
31
docker-compose-old.yml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
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", "--", "/bin/bash", "-lc", "/usr/local/bin/nats-registration-entrypoint"]
|
||||||
|
entrypoint: ["/usr/bin/tini","--","/bin/bash","-lc","/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
|
||||||
@@ -1,31 +1,50 @@
|
|||||||
services:
|
services:
|
||||||
nats-registration-listener:
|
nats-registration-listener-even:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: nats-registration-listener:latest
|
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
|
network_mode: host
|
||||||
|
|
||||||
working_dir: /opt/containers/nats-registration-listener/app
|
working_dir: /opt/containers/nats-registration-listener/app
|
||||||
# entrypoint: ["/usr/bin/tini", "--", "/bin/bash", "-lc", "/usr/local/bin/nats-registration-entrypoint"]
|
|
||||||
entrypoint: ["/usr/bin/tini","--","/bin/bash","-lc","/usr/local/bin/nats-registration-entrypoint"]
|
entrypoint: ["/usr/bin/tini","--","/bin/bash","-lc","/usr/local/bin/nats-registration-entrypoint"]
|
||||||
# command: ["/opt/containers/nats-registration-listener/app/bin/nats-registration-listener.sh"]
|
|
||||||
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
|
environment:
|
||||||
# One .env to rule them all
|
EVENT_LOG_PATH: "/opt/containers/nats-registration-listener/logs/registration_events_even.jsonl"
|
||||||
|
EVENODD: "even"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/opt/containers/nats-registration-listener/data:rw
|
- ./data:/opt/containers/nats-registration-listener/data:rw
|
||||||
|
- ./logs:/opt/containers/nats-registration-listener/logs:rw
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "/usr/local/bin/nats-registration-healthcheck"]
|
test: ["CMD-SHELL", "/usr/local/bin/nats-registration-healthcheck"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
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
|
||||||
Reference in New Issue
Block a user