全文検索:
- 04 Docker MailServer
- lserver/ volumesにSSL証明書を読み込むように書きを追加してあります。 /var/lib/docker/volumes/app_certs/_data:/etc/letsencry... volumes: - ./docker-data/dms/mail-data/:/var/mail/ - ./docker-data/dms/mail-state/:/var/mail-state/ - ./docker-data/dms/mail-logs/:/var/log/mail/ - ./docker-data/dms/config/:/tmp/
- 16 Kubernetes + DRBD Linstor
- e TestVol01 ====== 6.冗長化構成 ====== linstorの情報は、/var/lib/linstorに入っているので、これをどのノードでも使えるように冗長化する。 drbd-reactor で/var/lib/linstorをマウントしてないと、linstor-controllerが起動しないように... d用意 ==== <code> cat << EOF > /etc/systemd/system/var-lib-linstor.mount [Unit] Description=Filesystem f... symlink What=/dev/drbd/by-res/linstor_db/0 Where=/var/lib/linstor EOF </code> ==== linstor_dbをマウントしてli
- 10 Docker Let's Encrypt
- - /etc/letsencrypt:/etc/letsencrypt - /var/www/html:/var/www/html ports: - 80:80 #network_mode: host certbot: image: certbot... - /etc/letsencrypt:/etc/letsencrypt - /var/www/html:/var/www/html command: ["--version"] network_mode: host </code> ===== Nginxのdefault.
- 33 Let's Encrypt リバースプロキシ(手動板)+ GitLab
- トとして普通に表示させる場合 #location / { # root /var/www/html; # index index.html index.htm; ... tion /.well-known/acme-challenge/ { root /var/www/html; } } # gitlab.fl8.jp/ upstream gitl... m; server_name gitlab.fl8.jp; access_log /var/log/nginx/access.log; http2 on; listen 44... - /etc/letsencrypt:/etc/letsencrypt - /var/www/html:/var/www/html ports: - 80:80
- 08 docker-compose Nginx
- inx/conf.d:/etc/nginx/conf.d - ./nginx/html:/var/www/html </code> ==== フォルダ/ファイル用意 ==== <code> m... ocalhost; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; location / { root /var/www/html; index index.html index.htm; ... .html; location = /50x.html { root /var/www/html; } # proxy the PHP scripts to A
- 09 Dockerリバースプロキシ(HTTPS)
- ost.d - html:/usr/share/nginx/html - /var/run/docker.sock:/tmp/docker.sock:ro - ./cer... ost.d - html:/usr/share/nginx/html - /var/run/docker.sock:/var/run/docker.sock:ro - ./certs:/etc/nginx/certs:rw restart: always bri... etc/nginx/conf.d/default.conf - ./bridge-1:/var/www/html environment: - VIRTUAL_PORT=80
- 11 Docker image 作成
- apt-get install -y \ zabbix-agent \ && rm -rf /var/lib/apt/lists/* RUN \ mkdir -p /var/run/zabbix \ && chown zabbix.zabbix /var/run/zabbix # configure zabbix web server RUN cp /etc/zabbi... d.d/ fi /etc/init.d/zabbix-agent start tail -f /var/log/zabbix/zabbix_agentd.log </code> ===== buil
- 05 Docker Nginx reverse proxy
- r_connections 16; } http { proxy_cache_path /var/cache/nginx keys_zone=zone1:1m max_size=1g inactive=24h; proxy_temp_path /var/cache/nginx_tmp; server { listen 80; ... /nginx.conf:/etc/nginx/nginx.conf - /tmpfs:/var/cache ports: - 8088:80 </code> {{tag
- 22 Docker Private registry
- --restart=always \ -p 4000:5000 \ -v registry:/var/lib/registry \ registry:2 </code> ===== image作... できてるので、それをバックアップしておけば良いと思います。 <code> # # ls -al /var/lib/docker/volumes/registry total 12 drwx-----x 3... x 3 root root 4096 Aug 31 06:54 _data # ls -al /var/lib/docker/volumes/registry/_data/docker/registry
- 23 Docker log設定
- g設定 ====== ===== ログの場所 ===== <code> # ls -alh /var/lib/docker/containers/*/*-json.log </code> <code... ct app-proxy-1 | grep -i log "LogPath": "/var/lib/docker/containers/415a09895929c250e05f2ec463c... e> ===== 1.ログを消す ===== <code> # truncate -s 0 /var/lib/docker/containers/415a09895929c250e05f2ec463c
- 24 Bitwarden/Vaultwarden
- ost.d - html:/usr/share/nginx/html - /var/run/docker.sock:/tmp/docker.sock:ro networks:... ost.d - html:/usr/share/nginx/html - /var/run/docker.sock:/var/run/docker.sock:ro networks: - proxy-tier depends_on: - proxy
- 25 Let's Encrypt リバースプロキシ
- ost.d - html:/usr/share/nginx/html - /var/run/docker.sock:/tmp/docker.sock:ro - ./ser... ost.d - html:/usr/share/nginx/html - /var/run/docker.sock:/var/run/docker.sock:ro networks: - proxy-tier depends_on: - proxy
- 34 UnboundでHA構成
- ate`: Switching to MASTER, bringing up ens5 " >> /var/log/keepalived_notify.log arptables -F OU... itching to BACKUP/FAULT, bringing down ens5 " >> /var/log/keepalived_notify.log if [ "$(arptabl... echo "`date`: Unknown state: $STATE" >> /var/log/keepalived_notify.log ;; esac exit 0
- 20 Kubernetes GlusterFS Galera Wordpress
- [[#1.GlusterFS]]で作成した wordpress-pvc をwordpress の/var/www/htmlでマウントする。 <code|wordpress.yaml> apiVersio... wordpress-local-storage mountPath: /var/www/html volumes: - name: wordpress
- 27 Docker Djnago
- _PASSWORD: 'password' volumes: - ./mysql:/var/lib/mysql ports: - 3306:3306 </code> <c... _PASSWORD: 'password' volumes: - ./mysql:/var/lib/mysql ports: - 3306:3306 networks: