Commit 3c1c7c3d authored by James Kirk's avatar James Kirk
Browse files

refactor: added restart policies, API now relies on mq setup

parent e5a6395c
...@@ -2,23 +2,19 @@ version: '3.8' ...@@ -2,23 +2,19 @@ version: '3.8'
services: services:
rabbitmq__local: rabbitmq__local:
image: rabbitmq:management image: rabbitmq:management
restart: unless-stopped
ports: ports:
- "5672:5672" - "5672:5672"
# - "15672:15672" # Admin web console # - "15672:15672" # Admin web console
expose: expose:
- "5672" - "5672"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 5s
timeout: 20s
retries: 3
container_name: rmq container_name: rmq
soar_bus: soar_bus:
build: build:
context: .. context: ..
dockerfile: docker/Dockerfile dockerfile: docker/Dockerfile
restart: on-failure restart: unless-stopped
depends_on: depends_on:
- rabbitmq__local - rabbitmq__local
environment: environment:
...@@ -29,12 +25,15 @@ services: ...@@ -29,12 +25,15 @@ services:
build: build:
context: .. context: ..
dockerfile: docker/Dockerfile dockerfile: docker/Dockerfile
restart: unless-stopped
ports: ports:
- "8087:8087" - "8087:8087"
expose: expose:
- "8087" - "8087"
command: "api.py" depends_on:
- rabbitmq__local
environment: environment:
- MQ_HOST=${MQ_HOST} - MQ_HOST=${MQ_HOST}
volumes: volumes:
- ${DATA_DIR}/data:/data - ${DATA_DIR}/data:/data
command: "api.py"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment