[#148] Add coredns service

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
wallet-connect
Denis Kirillov 2021-11-23 09:44:19 +03:00 committed by Alex Vanin
parent e963907bd4
commit bed94e3ff9
9 changed files with 46 additions and 1 deletions

6
.env
View File

@ -23,9 +23,13 @@ HTTP_GW_VERSION=0.16.0
HTTP_GW_IMAGE=nspccdev/neofs-http-gw
# S3 Gate
S3_GW_VERSION=0.17.0
S3_GW_VERSION=17.0-16-gbefe084
S3_GW_IMAGE=nspccdev/neofs-s3-gw
# Coredns
COREDNS_VERSION=v016
COREDNS_IMAGE=nspccdev/coredns
# NeoFS LOCODE database
LOCODE_DB_URL=https://github.com/nspcc-dev/neofs-locode-db/releases/download/v0.2.1/locode_db.gz
#LOCODE_DB_PATH=/path/to/locode_db

View File

@ -7,3 +7,4 @@ ir
storage
http_gate
s3_gate
coredns

View File

@ -55,6 +55,7 @@ get: $(foreach SVC, $(GET_SVCS), get.$(SVC))
up: pull get vendor/hosts
@$(foreach SVC, $(START_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml up -d))
@./bin/tick.sh
@./bin/config.sh string SystemDNS container
@echo "NeoFS Developer Environment is ready"
# Stop environment

View File

@ -23,6 +23,10 @@ update.eigen_trust_iterations:
@./bin/config.sh int EigenTrustIterations $(val)
# Update system dns to resolve container names (make update.system_dns val=container)
update.system_dns:
@./bin/config.sh string SystemDNS $(val)
# Update alpha parameter of EigenTrust algorithm in 0 <= f <= 1.0 (make update.eigen_trust_alpha val=0.2)
update.eigen_trust_alpha:
@./bin/config.sh string EigenTrustAlpha $(val)

View File

@ -0,0 +1 @@
../../.env

View File

@ -0,0 +1 @@
IPV4_PREFIX.53 coredns.LOCAL_DOMAIN

View File

@ -0,0 +1,8 @@
. {
nns http://192.168.130.90:30333
transfer {
to *
}
log
debug
}

View File

@ -0,0 +1,23 @@
---
version: "2.4"
services:
neofs_coredns:
image: ${COREDNS_IMAGE}:${COREDNS_VERSION}
container_name: coredns
domainname: ${LOCAL_DOMAIN}
hostname: coredns
networks:
chain_int:
internet:
ipv4_address: ${IPV4_PREFIX}.53
stop_signal: SIGKILL
volumes:
- ./Corefile:/Corefile
- ./../../vendor/hosts:/etc/hosts
networks:
chain_int:
internet:
external: true
name: basenet_internet

View File

@ -8,6 +8,8 @@ services:
hostname: s3_gate
container_name: s3_gate
restart: on-failure
dns:
- ${IPV4_PREFIX}.53
networks:
s3_gate_int:
internet: