mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2026-11-27 11:19:11 +00:00
add unbound
This commit is contained in:
1 parent
5e683688cf
commit
ae1eca8471
1 file changed
+18
@@ -277,6 +277,15 @@ start_services() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting unbound..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./unbound/docker-compose.yaml up --pull always --build -d
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Unbound started successfully."
|
||||
else
|
||||
print_error "failed to start Unbound!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting gopkg proxy..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./gopkg_proxy/docker-compose.yaml up --pull always -d
|
||||
if [ $? -eq 0 ]; then
|
||||
@@ -468,6 +477,15 @@ stop_services() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Stopping unbound..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./unbound/docker-compose.yaml down
|
||||
if [ $? -eq 0 ]; then
|
||||
print_success "Unbound stopped successfully."
|
||||
else
|
||||
print_error "failed to stop Unbound!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Stopping gopkg proxy..."
|
||||
$DOCKER_COMPOSE_COMMAND -f ./gopkg_proxy/docker-compose.yaml down
|
||||
if [ $? -eq 0 ]; then
|
||||
|
||||
Reference in new issue
Block a user