Run docker swarm only on one interface(ip address)

Run docker swarm only on one interface Remove docker_gwbridge on node’s docker network create -o “com.docker.network.bridge.host_binding_ipv4″=”192.168.88.10” docker_gwbridge 192.168.88.10 >> is the ip to expose in this node On docker-compose for swarm use ports: – target: 80 published: 80 protocol: tcp mode: host […]

Читать дальше… from Run docker swarm only on one interface(ip address)

How run openvpn with systemd

How run openvpn with systemd We have config with name itc_life_ru.conf Place itc_life_ru.conf file into /etc/openvpn/. Edit /etc/default/openvpn. Uncomment this: AUTOSTART=”all” Reload daemon systemctl daemon-reload Edit file nano /etc/systemd/system/multi-user.target.wants/openvpn@itc_life_ru.service [Unit] Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I After=syslog.target network.target [Service] PrivateTmp=true Type=forking PIDFile=/var/run/openvpn/%i.pid ExecStart=/usr/sbin/openvpn –daemon –writepid /var/run/openvpn/%i.pid –cd /etc/openvpn/ –config %i.conf [Install] WantedBy=multi-user.target […]

Читать дальше… from How run openvpn with systemd

Backup databases mysql and postgres from docker’s

Backup databases mysql and postgres in containers. Add to crontabs like this 00 00 * * * bash /docker-compose/scripts/backup_db.sh “ARG_BACKUP_ROOT_DIR=/docker-compose/bup” “ARG_DB_STACK_POSTGRES=docker” “ARG_DB_STACK_MYSQL=docker” “ARG_DAYS_TO_STORE_BACKUP=30” “ARG_DOW_FOR_VACUUM=6” #!/bin/bash #bash /docker-compose/scripts/backup_db.sh “ARG_BACKUP_ROOT_DIR=/docker-compose/bup” “ARG_DB_STACK_POSTGRES=docker” “ARG_DB_STACK_MYSQL=docker” “ARG_DAYS_TO_STORE_BACKUP=30” “ARG_DOW_FOR_VACUUM=6″ DATE_BACKUP=$(date +”%Y-%m-%d”) DOW=$(date +%u) ##Вход переменная backup dir ARG_BACKUP_ROOT_DIR=”$1″ BACKUP_ROOT_DIR=$(echo “${ARG_BACKUP_ROOT_DIR}” | cut -d\= -f2) ##Вход переменная DB_STACK_POSTGRES – native or docker ARG_DB_STACK_POSTGRES=”$2″ […]

Читать дальше… from Backup databases mysql and postgres from docker’s

Авторизация в gitlab через openldap

Авторизация в gitlab через openldap Для авторизации gitlab через openldap правим конфиг gitlab.rb. Добавим секцию ## For setting up LDAP ## see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#setting-up$ ## Be careful not to break the identation in the ldap_servers block. It is in gitlab_rails[‘ldap_enabled’] = true gitlab_rails[‘ldap_servers’] = { ‘main’ => { ‘label’ => ‘GitLab OPENLDAP’, ‘host’ => ‘$LDAP_IP’, ‘port’ […]

Читать дальше… from Авторизация в gitlab через openldap