frostfs-dev-env/services/storage/docker-compose.yml
Pavel Karpy c8d48c9053 [#163] node: Add object notification support
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-06-06 10:03:17 +03:00

186 lines
5.9 KiB
YAML

---
version: "2.4"
services:
storage01:
image: ${NODE_IMAGE}:${NODE_VERSION}
domainname: ${LOCAL_DOMAIN}
hostname: s01
container_name: s01
restart: on-failure
networks:
storage_int:
internet:
ipv4_address: ${IPV4_PREFIX}.71
volumes:
- ./wallet01.json:/wallet01.json
- ./../../vendor/hosts:/etc/hosts
- storage_s01:/storage
- ./../../vendor/neofs-cli:/neofs-cli
- ./healthcheck.sh:/healthcheck.sh
- ./s04tls.crt:/etc/ssl/certs/s04tls.crt
- ../nats/client-cert.pem:/etc/neofs-node/nats.tls.cert
- ../nats/client-key.pem:/etc/neofs-node/nats.tls.key
- ../nats/ca-cert.pem:/etc/neofs-node/nats.ca.crt
stop_signal: SIGKILL
env_file: [ ".env", ".storage.env", ".int_test.env" ]
environment:
- NEOFS_NODE_WALLET_PATH=./wallet01.json
- NEOFS_NODE_WALLET_ADDRESS=NejLbQpojKJWec4NQRMBhzsrmCyhXfGJJe
- NEOFS_NODE_WALLET_PASSWORD=
- NEOFS_NODE_ADDRESSES=s01.${LOCAL_DOMAIN}:8080
- NEOFS_GRPC_0_ENDPOINT=s01.${LOCAL_DOMAIN}:8080
- NEOFS_CONTROL_GRPC_ENDPOINT=s01.${LOCAL_DOMAIN}:8081
- NEOFS_NODE_ATTRIBUTE_1=UN-LOCODE:RU MOW
- NEOFS_NODE_ATTRIBUTE_2=Price:22
healthcheck:
test: ["CMD-SHELL", "/healthcheck.sh"]
interval: 2s
timeout: 1s
retries: 5
start_period: 10s
storage02:
image: ${NODE_IMAGE}:${NODE_VERSION}
domainname: ${LOCAL_DOMAIN}
hostname: s02
container_name: s02
restart: on-failure
networks:
storage_int:
internet:
ipv4_address: ${IPV4_PREFIX}.72
volumes:
- ./wallet02.json:/wallet02.json
- ./../../vendor/hosts:/etc/hosts
- storage_s02:/storage
- ./../../vendor/neofs-cli:/neofs-cli
- ./healthcheck.sh:/healthcheck.sh
- ./s04tls.crt:/etc/ssl/certs/s04tls.crt
- ../nats/client-cert.pem:/etc/neofs-node/nats.tls.cert
- ../nats/client-key.pem:/etc/neofs-node/nats.tls.key
- ../nats/ca-cert.pem:/etc/neofs-node/nats.ca.crt
stop_signal: SIGKILL
env_file: [ ".env", ".storage.env", ".int_test.env" ]
environment:
- NEOFS_NODE_WALLET_PATH=./wallet02.json
- NEOFS_NODE_WALLET_ADDRESS=NVXXy3hNTvwVEZa2dAibALyJB3Q86aiHvL
- NEOFS_NODE_WALLET_PASSWORD=
- NEOFS_NODE_ADDRESSES=s02.${LOCAL_DOMAIN}:8080
- NEOFS_GRPC_0_ENDPOINT=s02.${LOCAL_DOMAIN}:8080
- NEOFS_CONTROL_GRPC_ENDPOINT=s02.${LOCAL_DOMAIN}:8081
- NEOFS_NODE_ATTRIBUTE_1=UN-LOCODE:RU LED
- NEOFS_NODE_ATTRIBUTE_2=Price:33
healthcheck:
test: ["CMD-SHELL", "/healthcheck.sh"]
interval: 2s
timeout: 1s
retries: 5
start_period: 10s
storage03:
image: ${NODE_IMAGE}:${NODE_VERSION}
domainname: ${LOCAL_DOMAIN}
hostname: s03
container_name: s03
restart: on-failure
networks:
storage_int:
internet:
ipv4_address: ${IPV4_PREFIX}.73
volumes:
- ./wallet03.json:/wallet03.json
- ./../../vendor/hosts:/etc/hosts
- storage_s03:/storage
- ./../../vendor/neofs-cli:/neofs-cli
- ./healthcheck.sh:/healthcheck.sh
- ./s04tls.crt:/etc/ssl/certs/s04tls.crt
- ../nats/client-cert.pem:/etc/neofs-node/nats.tls.cert
- ../nats/client-key.pem:/etc/neofs-node/nats.tls.key
- ../nats/ca-cert.pem:/etc/neofs-node/nats.ca.crt
stop_signal: SIGKILL
env_file: [ ".env", ".storage.env", ".int_test.env" ]
environment:
- NEOFS_NODE_WALLET_PATH=./wallet03.json
- NEOFS_NODE_WALLET_ADDRESS=NPTmih9X14Y7xLvmD6RVtDHdH1Y9qJwoTe
- NEOFS_NODE_WALLET_PASSWORD=
- NEOFS_NODE_ADDRESSES=s03.${LOCAL_DOMAIN}:8080
- NEOFS_GRPC_0_ENDPOINT=s03.${LOCAL_DOMAIN}:8080
- NEOFS_CONTROL_GRPC_ENDPOINT=s03.${LOCAL_DOMAIN}:8081
- NEOFS_NODE_ATTRIBUTE_1=UN-LOCODE:SE STO
- NEOFS_NODE_ATTRIBUTE_2=Price:11
healthcheck:
test: ["CMD-SHELL", "/healthcheck.sh"]
interval: 2s
timeout: 1s
retries: 5
start_period: 10s
storage04:
image: ${NODE_IMAGE}:${NODE_VERSION}
domainname: ${LOCAL_DOMAIN}
hostname: s04
container_name: s04
restart: on-failure
networks:
storage_int:
internet:
ipv4_address: ${IPV4_PREFIX}.74
volumes:
- ./wallet04.json:/wallet04.json
- ./../../vendor/hosts:/etc/hosts
- storage_s04:/storage
- ./../../vendor/neofs-cli:/neofs-cli
- ./healthcheck.sh:/healthcheck.sh
- ./s04tls.crt:/tls.crt
- ./s04tls.key:/tls.key
- ../nats/client-cert.pem:/etc/neofs-node/nats.tls.cert
- ../nats/client-key.pem:/etc/neofs-node/nats.tls.key
- ../nats/ca-cert.pem:/etc/neofs-node/nats.ca.crt
stop_signal: SIGKILL
env_file: [ ".env", ".storage.env", ".int_test.env" ]
environment:
- NEOFS_NODE_WALLET_PATH=./wallet04.json
- NEOFS_NODE_WALLET_ADDRESS=Ne2DAQbWvP1s7TbtFc7BStKMnjKJdBaVRm
- NEOFS_NODE_WALLET_PASSWORD=
- NEOFS_NODE_ADDRESSES=s04.${LOCAL_DOMAIN}:8080 grpcs://s04.${LOCAL_DOMAIN}:8082
- NEOFS_CONTROL_GRPC_ENDPOINT=s04.${LOCAL_DOMAIN}:8081
- NEOFS_GRPC_NUM=2
- NEOFS_GRPC_0_ENDPOINT=s04.${LOCAL_DOMAIN}:8080
- NEOFS_GRPC_1_ENDPOINT=s04.${LOCAL_DOMAIN}:8082
- NEOFS_GRPC_1_TLS_ENABLED=true
- NEOFS_GRPC_1_TLS_CERTIFICATE=/tls.crt
- NEOFS_GRPC_1_TLS_KEY=/tls.key
- NEOFS_NODE_ATTRIBUTE_1=UN-LOCODE:FI HEL
- NEOFS_NODE_ATTRIBUTE_2=Price:44
healthcheck:
test: ["CMD-SHELL", "/healthcheck.sh"]
interval: 2s
timeout: 1s
retries: 5
start_period: 10s
sn-healthcheck:
container_name: sn-healthcheck
image: debian:10
depends_on:
storage01:
condition: service_healthy
storage02:
condition: service_healthy
storage03:
condition: service_healthy
storage04:
condition: service_healthy
volumes:
storage_s01:
storage_s02:
storage_s03:
storage_s04:
networks:
storage_int:
internet:
external: true
name: basenet_internet