środa, 27 kwietnia 2022

docker - arbitrary bridge's interface name

For docker-compose:
networks:
  default:
    driver_opts:
      com.docker.network.bridge.name: br-name
For CLI:
docker network create -o com.docker.network.bridge.name=br-name name

nginx vhost logging

   log_format vhost_extra '$host $remote_addr - $remote_user [$time_local] '
                           '"$request" $status $body_bytes_sent '
                           '"$http_referer" "$http_user_agent"'
                           ' rt=$request_time uct="$upstream_connect_time" uht="$upstream_header_time" urt="$upstream_response_time"';

   access_log /var/log/nginx/access.log vhost_extra;