frostfs-dev-env/services/ir/docker-compose.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

2020-07-10 15:14:30 +00:00
---
services:
2020-07-10 15:14:30 +00:00
ir01:
image: ${IR_IMAGE}:${IR_VERSION}
domainname: ${LOCAL_DOMAIN}
hostname: ir01
container_name: ir01
restart: on-failure
2020-07-10 15:14:30 +00:00
networks:
ir_int:
internet:
ipv4_address: ${IPV4_PREFIX}.61
stop_signal: SIGTERM
stop_grace_period: 15s
volumes:
- ./az.json:/wallet.json
- ./az.key:/wallet01.key
- ./../../vendor/hosts:/etc/hosts
- ./../../vendor/locode_db:/locode/db
- ./../../vendor/frostfs-cli:/frostfs-cli
- ./cfg:/etc/frostfs/ir
env_file: [ ".env", ".ir.env", ".int_test.env" ]
command: [ "frostfs-ir", "--config", "/etc/frostfs/ir/config.yml" ]
healthcheck:
test: ["CMD-SHELL", "/frostfs-cli control ir healthcheck -q --wallet /wallet01.key --endpoint \"$$FROSTFS_IR_CONTROL_GRPC_ENDPOINT\""]
interval: 2s
timeout: 1s
retries: 5
start_period: 20s
ir-healthcheck:
container_name: ir-healthcheck
image: debian:10
depends_on:
ir01:
condition: service_healthy
2020-07-10 15:14:30 +00:00
networks:
ir_int:
internet:
external: true
name: basenet_internet