mirror of
https://github.com/outbackdingo/xmidt.git
synced 2026-08-25 14:53:55 +00:00
Lint docker compose file (#63)
* lint docker compose file * add script to stop services and remove containers
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
|||||||
|
echo "Stopping services & removing containers..."
|
||||||
|
CADUCEUS_VERSION=${CADUCEUS_VERSION:-latest} \
|
||||||
|
ARGUS_VERSION=${ARGUS_VERSION:-latest} \
|
||||||
|
TR1D1UM_VERSION=${TR1D1UM_VERSION:-latest} \
|
||||||
|
SCYTALE_VERSION=${SCYTALE_VERSION:-latest} \
|
||||||
|
PETASOS_VERSION=${PETASOS_VERSION:-latest} \
|
||||||
|
TALARIA_VERSION=${TALARIA_VERSION:-latest} \
|
||||||
|
THEMIS_VERSION=${THEMIS_VERSION:-latest} \
|
||||||
|
SIMULATOR_VERSION=${SIMULATOR_VERSION:-latest} \
|
||||||
|
docker compose down --remove-orphans
|
||||||
@@ -1,151 +1,111 @@
|
|||||||
version: '3.8'
|
---
|
||||||
|
networks:
|
||||||
|
xmidt: ~
|
||||||
services:
|
services:
|
||||||
caduceus:
|
|
||||||
image: xmidt/caduceus:${CADUCEUS_VERSION}
|
|
||||||
container_name: caduceus
|
|
||||||
ports:
|
|
||||||
- "6000-6003:6000-6003"
|
|
||||||
environment:
|
|
||||||
- CONSUL_HOST=consul0:8500
|
|
||||||
- ARGUS_HOST=http://argus:6600
|
|
||||||
depends_on:
|
|
||||||
- argus
|
|
||||||
networks:
|
|
||||||
- xmidt
|
|
||||||
|
|
||||||
tr1d1um:
|
|
||||||
image: xmidt/tr1d1um:${TR1D1UM_VERSION}
|
|
||||||
environment:
|
|
||||||
- CONSUL_HOST=consul0:8500
|
|
||||||
- ARGUS_HOST=http://argus:6600
|
|
||||||
- TRACING_PROVIDER_NAME=zipkin
|
|
||||||
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
|
|
||||||
container_name: tr1d1um
|
|
||||||
ports:
|
|
||||||
- "6100-6103:6100-6103"
|
|
||||||
depends_on:
|
|
||||||
- argus
|
|
||||||
- scytale
|
|
||||||
networks:
|
|
||||||
- xmidt
|
|
||||||
|
|
||||||
# Mark Talaria Services
|
|
||||||
talaria-0: &talaria
|
|
||||||
image: xmidt/talaria:${TALARIA_VERSION}
|
|
||||||
environment:
|
|
||||||
- CONSUL_HOST=consul0:8500
|
|
||||||
- TRACING_PROVIDER_NAME=zipkin
|
|
||||||
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
|
|
||||||
container_name: talaria0
|
|
||||||
ports:
|
|
||||||
- "6200-6204:6200-6204"
|
|
||||||
depends_on:
|
|
||||||
- consul0
|
|
||||||
- themis
|
|
||||||
networks:
|
|
||||||
- xmidt
|
|
||||||
talaria-1:
|
|
||||||
<<: *talaria
|
|
||||||
environment:
|
|
||||||
- CONSUL_HOST=consul0:8500
|
|
||||||
- TRACING_PROVIDER_NAME=zipkin
|
|
||||||
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
|
|
||||||
container_name: talaria1
|
|
||||||
ports:
|
|
||||||
- "6210-6214:6200-6204"
|
|
||||||
talaria-2:
|
|
||||||
<<: *talaria
|
|
||||||
environment:
|
|
||||||
- CONSUL_HOST=consul1:8500
|
|
||||||
- TRACING_PROVIDER_NAME=zipkin
|
|
||||||
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
|
|
||||||
container_name: talaria2
|
|
||||||
ports:
|
|
||||||
- "6220-6224:6200-6204"
|
|
||||||
|
|
||||||
scytale:
|
|
||||||
image: xmidt/scytale:${SCYTALE_VERSION}
|
|
||||||
environment:
|
|
||||||
- CONSUL_HOST=consul0:8500
|
|
||||||
- ARGUS_HOST=http://argus:6600
|
|
||||||
- TRACING_PROVIDER_NAME=zipkin
|
|
||||||
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
|
|
||||||
container_name: scytale
|
|
||||||
ports:
|
|
||||||
- "6300-6303:6300-6303"
|
|
||||||
depends_on:
|
|
||||||
- petasos
|
|
||||||
- argus
|
|
||||||
networks:
|
|
||||||
- xmidt
|
|
||||||
|
|
||||||
# Mark petasos Services
|
|
||||||
petasos: &petasos
|
|
||||||
image: xmidt/petasos:${PETASOS_VERSION}
|
|
||||||
environment:
|
|
||||||
- CONSUL_HOST=consul0:8500
|
|
||||||
container_name: petasos
|
|
||||||
ports:
|
|
||||||
- "6400-6403:6400-6403"
|
|
||||||
depends_on:
|
|
||||||
- consul0
|
|
||||||
networks:
|
|
||||||
- xmidt
|
|
||||||
|
|
||||||
themis:
|
|
||||||
image: xmidt/themis:${THEMIS_VERSION}
|
|
||||||
environment:
|
|
||||||
- CONSUL_HOST=consul0:8500
|
|
||||||
- TRACING_PROVIDER_NAME=zipkin
|
|
||||||
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
|
|
||||||
container_name: themis
|
|
||||||
ports:
|
|
||||||
- "6500-6504:6500-6504"
|
|
||||||
networks:
|
|
||||||
- xmidt
|
|
||||||
|
|
||||||
argus:
|
argus:
|
||||||
image: xmidt/argus:${ARGUS_VERSION}
|
|
||||||
environment:
|
|
||||||
- "AWS_ENDPOINT=http://dynamodb:8000"
|
|
||||||
- TRACING_PROVIDER_NAME=zipkin
|
|
||||||
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
|
||||||
- "ACCESS_LEVEL_CAPABILITY=x1:issuer:test:.*:all"
|
|
||||||
container_name: argus
|
container_name: argus
|
||||||
ports:
|
|
||||||
- "6600-6603:6600-6603"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- dynamodb
|
- dynamodb
|
||||||
|
environment:
|
||||||
|
- "AWS_ENDPOINT=http://dynamodb:8000"
|
||||||
|
- "TRACING_PROVIDER_NAME=zipkin"
|
||||||
|
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
||||||
|
- "ACCESS_LEVEL_CAPABILITY=x1:issuer:test:.*:all"
|
||||||
|
image: "xmidt/argus:${ARGUS_VERSION}"
|
||||||
networks:
|
networks:
|
||||||
- xmidt
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "6600-6603:6600-6603"
|
||||||
|
caduceus:
|
||||||
|
container_name: caduceus
|
||||||
|
depends_on:
|
||||||
|
- argus
|
||||||
|
environment:
|
||||||
|
- "CONSUL_HOST=consul0:8500"
|
||||||
|
- "ARGUS_HOST=http://argus:6600"
|
||||||
|
image: "xmidt/caduceus:${CADUCEUS_VERSION}"
|
||||||
|
networks:
|
||||||
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "6000-6003:6000-6003"
|
||||||
|
consul0:
|
||||||
|
command: "agent -server -bootstrap-expect 1 -ui -client 0.0.0.0 -config-file consul.json"
|
||||||
|
container_name: consul0
|
||||||
|
hostname: consul0
|
||||||
|
image: "consul:latest"
|
||||||
|
networks:
|
||||||
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "8400:8400"
|
||||||
|
- "8500:8500"
|
||||||
|
- "8600:8600"
|
||||||
|
- "8600:8600/udp"
|
||||||
|
volumes:
|
||||||
|
- "./docFiles/consul-0.json:/consul.json"
|
||||||
|
consul1:
|
||||||
|
command: "agent -server -bootstrap-expect 1 -ui -client 0.0.0.0 -config-file consul.json"
|
||||||
|
container_name: consul1
|
||||||
|
depends_on:
|
||||||
|
- consul0
|
||||||
|
hostname: consul1
|
||||||
|
image: "consul:latest"
|
||||||
|
networks:
|
||||||
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "8401:8400"
|
||||||
|
- "8501:8500"
|
||||||
|
- "8601:8600"
|
||||||
|
- "8601:8600/udp"
|
||||||
|
volumes:
|
||||||
|
- "./docFiles/consul-1.json:/consul.json"
|
||||||
dynamodb:
|
dynamodb:
|
||||||
image: amazon/dynamodb-local
|
|
||||||
hostname: dynamodb
|
|
||||||
container_name: dynamo-xmidt
|
container_name: dynamo-xmidt
|
||||||
|
hostname: dynamodb
|
||||||
|
image: amazon/dynamodb-local
|
||||||
|
networks:
|
||||||
|
- xmidt
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
networks:
|
petasos:
|
||||||
- xmidt
|
container_name: petasos
|
||||||
|
depends_on:
|
||||||
prometheus:
|
- consul0
|
||||||
image: prom/prometheus
|
environment:
|
||||||
container_name: prometheus-xmidt
|
- "CONSUL_HOST=consul0:8500"
|
||||||
|
image: "xmidt/petasos:${PETASOS_VERSION}"
|
||||||
networks:
|
networks:
|
||||||
- xmidt
|
- xmidt
|
||||||
ports:
|
ports:
|
||||||
- 9090:9090
|
- "6400-6403:6400-6403"
|
||||||
|
prometheus:
|
||||||
|
command: "--log.level=debug --config.file=/prometheus-data/prometheus.yml"
|
||||||
|
container_name: prometheus-xmidt
|
||||||
depends_on:
|
depends_on:
|
||||||
- consul0
|
- consul0
|
||||||
- consul1
|
- consul1
|
||||||
|
image: prom/prometheus
|
||||||
|
networks:
|
||||||
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "9090:9090"
|
||||||
volumes:
|
volumes:
|
||||||
- ./docFiles/prometheus.yml:/prometheus-data/prometheus.yml
|
- "./docFiles/prometheus.yml:/prometheus-data/prometheus.yml"
|
||||||
command: --log.level=debug --config.file=/prometheus-data/prometheus.yml
|
scytale:
|
||||||
|
container_name: scytale
|
||||||
|
depends_on:
|
||||||
# Mark rdkb-simulator Services
|
- petasos
|
||||||
simulator: &simulator
|
- argus
|
||||||
image: xmidt/simulator:${SIMULATOR_VERSION}
|
environment:
|
||||||
|
- "CONSUL_HOST=consul0:8500"
|
||||||
|
- "ARGUS_HOST=http://argus:6600"
|
||||||
|
- TRACING_PROVIDER_NAME=zipkin
|
||||||
|
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
||||||
|
image: "xmidt/scytale:${SCYTALE_VERSION}"
|
||||||
|
networks:
|
||||||
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "6300-6303:6300-6303"
|
||||||
|
simulator:
|
||||||
container_name: simulator
|
container_name: simulator
|
||||||
depends_on:
|
depends_on:
|
||||||
- talaria-0
|
- talaria-0
|
||||||
@@ -153,55 +113,81 @@ services:
|
|||||||
- talaria-2
|
- talaria-2
|
||||||
- petasos
|
- petasos
|
||||||
- themis
|
- themis
|
||||||
|
image: "xmidt/simulator:${SIMULATOR_VERSION}"
|
||||||
networks:
|
networks:
|
||||||
- xmidt
|
- xmidt
|
||||||
|
talaria-0:
|
||||||
# Mark Consul Definitions
|
container_name: talaria0
|
||||||
consul0:
|
|
||||||
image: consul:latest
|
|
||||||
container_name: consul0
|
|
||||||
hostname: consul0
|
|
||||||
ports:
|
|
||||||
- 8400:8400
|
|
||||||
- 8500:8500
|
|
||||||
- 8600:8600
|
|
||||||
- 8600:8600/udp
|
|
||||||
networks:
|
|
||||||
- xmidt
|
|
||||||
volumes:
|
|
||||||
- ./docFiles/consul-0.json:/consul.json
|
|
||||||
command: "agent -server -bootstrap-expect 1 -ui -client 0.0.0.0 -config-file consul.json"
|
|
||||||
consul1:
|
|
||||||
image: consul:latest
|
|
||||||
container_name: consul1
|
|
||||||
hostname: consul1
|
|
||||||
ports:
|
|
||||||
- 8401:8400
|
|
||||||
- 8501:8500
|
|
||||||
- 8601:8600
|
|
||||||
- 8601:8600/udp
|
|
||||||
networks:
|
|
||||||
- xmidt
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- consul0
|
- consul0
|
||||||
volumes:
|
- themis
|
||||||
- ./docFiles/consul-1.json:/consul.json
|
environment:
|
||||||
command: "agent -server -bootstrap-expect 1 -ui -client 0.0.0.0 -config-file consul.json"
|
- "CONSUL_HOST=consul0:8500"
|
||||||
|
- TRACING_PROVIDER_NAME=zipkin
|
||||||
dynamodb:
|
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
||||||
image: amazon/dynamodb-local
|
image: "xmidt/talaria:${TALARIA_VERSION}"
|
||||||
hostname: dynamodb-local
|
|
||||||
ports:
|
|
||||||
- "8000:8000"
|
|
||||||
networks:
|
networks:
|
||||||
- xmidt
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "6200-6204:6200-6204"
|
||||||
|
talaria-1:
|
||||||
|
container_name: talaria1
|
||||||
|
depends_on:
|
||||||
|
- consul0
|
||||||
|
- themis
|
||||||
|
environment:
|
||||||
|
- "CONSUL_HOST=consul0:8500"
|
||||||
|
- TRACING_PROVIDER_NAME=zipkin
|
||||||
|
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
||||||
|
image: "xmidt/talaria:${TALARIA_VERSION}"
|
||||||
|
networks:
|
||||||
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "6210-6214:6200-6204"
|
||||||
|
talaria-2:
|
||||||
|
container_name: talaria2
|
||||||
|
depends_on:
|
||||||
|
- consul0
|
||||||
|
- themis
|
||||||
|
environment:
|
||||||
|
- "CONSUL_HOST=consul1:8500"
|
||||||
|
- TRACING_PROVIDER_NAME=zipkin
|
||||||
|
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
||||||
|
image: "xmidt/talaria:${TALARIA_VERSION}"
|
||||||
|
networks:
|
||||||
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "6220-6224:6200-6204"
|
||||||
|
themis:
|
||||||
|
container_name: themis
|
||||||
|
environment:
|
||||||
|
- "CONSUL_HOST=consul0:8500"
|
||||||
|
- TRACING_PROVIDER_NAME=zipkin
|
||||||
|
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
||||||
|
image: "xmidt/themis:${THEMIS_VERSION}"
|
||||||
|
networks:
|
||||||
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "6500-6504:6500-6504"
|
||||||
|
tr1d1um:
|
||||||
|
container_name: tr1d1um
|
||||||
|
depends_on:
|
||||||
|
- argus
|
||||||
|
- scytale
|
||||||
|
environment:
|
||||||
|
- "CONSUL_HOST=consul0:8500"
|
||||||
|
- "ARGUS_HOST=http://argus:6600"
|
||||||
|
- TRACING_PROVIDER_NAME=zipkin
|
||||||
|
- "TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans"
|
||||||
|
image: "xmidt/tr1d1um:${TR1D1UM_VERSION}"
|
||||||
|
networks:
|
||||||
|
- xmidt
|
||||||
|
ports:
|
||||||
|
- "6100-6103:6100-6103"
|
||||||
zipkin:
|
zipkin:
|
||||||
image: openzipkin/zipkin
|
image: openzipkin/zipkin
|
||||||
ports:
|
|
||||||
- "9411:9411"
|
|
||||||
networks:
|
networks:
|
||||||
- xmidt
|
- xmidt
|
||||||
|
ports:
|
||||||
networks:
|
- "9411:9411"
|
||||||
xmidt:
|
version: "3.8"
|
||||||
|
|||||||
Reference in New Issue
Block a user